Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!cg-atla!raybed2!lef From: lef@raybed2.UUCP (LEE FYOCK) Newsgroups: comp.sys.mac.programmer Subject: Window Zooming Keywords: window zoom Message-ID: <1453@raybed2.UUCP> Date: 31 Jan 90 19:48:47 GMT Distribution: usa Organization: Raytheon Co., Bedford, Mass. Lines: 21 Does anyone have any code for window zooming? I've been trying to get a window to zoom, but I must not be doing something right. I created a window of the correct type, and I receive inZoomOut events when I click in it. Am I supposed to diddle with the WStateData in the DataHandle part of the WindowRecord? I tried to initialize the values, but had trouble dereferencing and typecasting DataHandle. I finally got something to compile by dereferencing DataHandle to a pointer, 'casting that, and storing some rectangles there. Playing around in the Debugger shows that I _always_ receive inZoomOut events, never inZoomIn. When I get the event, I call TrackBox and ZoomWindow. The window just blinks. Sorry for the lack of details, but the code's at home. Any ideas? --------------------------------------------------------------------------- Lee Fyock Advanced Systems Section lef@raybed6.RAY.COM Raytheon MSD