Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!think.com!hsdndev!dartvax!eleazar.dartmouth.edu!watt From: watt@eleazar.dartmouth.edu (Gill Watt) Newsgroups: comp.sys.mac.programmer Subject: GlobalToLocal() LocalToGlobal() information Summary: see subject Keywords: QuickDraw, GlobalToLocal, Window Managare Message-ID: <1991Feb17.190448.19116@dartvax.dartmouth.edu> Date: 17 Feb 91 19:04:48 GMT Sender: news@dartvax.dartmouth.edu (The News Manager) Distribution: comp Organization: Dartmouth College, Hanover, NH Lines: 27 howdy, I have a quick question that someone in this group might be able to answer without too much trouble. The (WindowPtr).portRect contains the dimensions of a window in the local coordinate system. To translate a point to the global coordinate system one uses LocalToGlobal( &point ). This LocalToGlobal() translation is simply addition or subtraction from some reference point (window location in global coordinates). This information is contained in the WDEFResource boundsRect element, but I don't know where it goes during the GetWindow( ) function call. Where is this reference point stored? (structure? element?). Where is this described? I haven't been able to find anything in IM. Thanks in advance. -- --------------------------------------------------------------------- Gill Watt (watt@eleazar.dartmouth.edu) Thayer School of Engineering, Dartmouth College, Hanover, NH 03755 ---------------------------------------------------------------------