Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!oakhill!davet From: davet@oakhill.UUCP (David Trissel) Newsgroups: comp.sys.mac.programmer Subject: Re: DragHook question Message-ID: <2496@oakhill.UUCP> Date: 18 Oct 89 07:29:22 GMT References: <5233@lindy.Stanford.EDU> Reply-To: davet@oakhill.UUCP (David Trissel) Organization: Motorola Inc., Austin, Texas Lines: 17 In article <5233@lindy.Stanford.EDU> GG.DAR@forsythe.stanford.edu (Aaron Reizes) writes: >I want to display the size of the window while a user is changing >the size with the GrowBox. GrowWindow will call a routine through >the DragHook pointer if I set it to point to my routine. >Unfortunately, there are no parameters passed with this call. Is >there a way to know the coordinates of the current drag rectangle >from the DragHook routine? I wrote an application which does this. I save the current window pointer and the current mouse position in my own global variables. The draghook routine then saves the current port, sets the current port to the saved window's port, does a GetMouse call to track the mouse movements and then restores the original port. -- Dave Trissel, Austin