Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!stat!fsu!prism!cc100aa From: cc100aa@prism.gatech.EDU (Ray Spalding) Newsgroups: comp.sys.mac.programmer Subject: Re: Window Zooming Keywords: window zoom Message-ID: <5544@hydra.gatech.EDU> Date: 1 Feb 90 13:45:47 GMT References: <1453@raybed2.UUCP> Reply-To: cc100aa@prism.gatech.EDU (Ray Spalding) Distribution: usa Organization: Georgia Institute of Technology Lines: 26 In article <1453@raybed2.UUCP> lef@raybed2.UUCP (LEE FYOCK) writes: >I created a window of the correct type, and I receive inZoomOut >events when I click in it. There's no such thing. You get mouseDown events, to which you should respond by calling FindWindow. >Am I supposed to diddle with the >WStateData in the DataHandle part of the WindowRecord? No, not for ordinary zooming of a standard zoom window. Remove any such code as it may be interfering with proper operation. >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. Be sure you're passing the return value from FindWindow (that is, either inZoomOut or inZoomIn) as the partCode argument to TrackBox and ZoomWindow. For ordinary zooming, your code does not need to worry about which way you're going. -- Ray Spalding, Office of Computing Services Georgia Institute of Technology, Atlanta Georgia, 30332-0275 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!cc100aa Internet: cc100aa@prism.gatech.edu