In article <mac-perl.1dbj7ak.18ma5q8jnf9o4M@slip-32-100-246-61.ny.us.ibm.net>, kpreid@ibm.net (Kevin Reid) wrote: >Is there a way to resize and move a window at the same time? Right now, >I am using this function, but it doesn't work very well, since it moves, >then resizes: The other suggestion of hiding, moving and resizing, and then showing is probably best; if there is a delay it will probably be too short to annoy the user. If you really want to do both at the same time, the only way I know of is through ZoomWindow. The tricky part is that you have to fiddle directly with some components of the Mac Window's data structure, and I'm not sure from reading the pod docs if you can do this via Perl's interface to the toolbox routines; the docs say that the window's GrafPtr should be considered read-only, but I don't know if this is enforced or just a suggestion. Anyway, if you set the userState and/or stdState fields to the desired final rectangle and call ZoomWindow, then it should work. Of course, I haven't tried it.... Drop me a line if you want further explanation--there is a good explanation in THINK Reference if you are comfortable reading C; I'm sure that InsideMac: Toolbox would have the info also, again provided that you can read C (or probably Pascal in this case). -- __________________________________________________________________________ Jeff Clites Online Editor http://www.MacTech.com/ online@MacTech.com MacTech Magazine __________________________________________________________________________ ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch