Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!srcsip!gorby!mnkonar From: mnkonar@gorby.SRC.Honeywell.COM (Murat N. Konar) Newsgroups: comp.sys.mac.programmer Subject: Re: DragHook question Message-ID: <35304@srcsip.UUCP> Date: 18 Oct 89 02:25:30 GMT References: <5233@lindy.Stanford.EDU> <2583@hub.UUCP> Sender: news@src.honeywell.COM Reply-To: mnkonar@gorby.UUCP (Murat N. Konar) Organization: Honeywell Systems & Research Center, Camden, MN Lines: 22 In article <2583@hub.UUCP> pete@cavevax.ucsb.edu writes: >In article <5233@lindy.Stanford.EDU> GG.DAR@forsythe.stanford.edu (Aaron Reizes) writes: > >> Is there a way to know the coordinates of the current drag rectangle >> from the DragHook routine? > >I would imagine that since the front window is the one that gets its >size box dragged, you could dereference FrontWindow, or, better, put a >WindowPeek in a global and dereference that. Careful now. Think twice about this! In applications that use floating palettes (Hypercard, MacPaint 2.0, Fullpaint, etc.) the front window IS NOT NECESSARILY THE ONE THAT GETS DRAGGED! Even under more traditional applications, the user can drag a window without activating it by holding down the command key. ____________________________________________________________________ Have a day. :^| Murat N. Konar Honeywell Systems & Research Center, Camden, MN mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar(UUCP)