Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!stanford.edu!neon.Stanford.EDU!calvin!zimmer From: zimmer@calvin.stanford.edu (Andrew Zimmerman) Newsgroups: comp.sys.next Subject: YAPQ - Yet another programming question Message-ID: <1991Mar12.082358.3527@neon.Stanford.EDU> Date: 12 Mar 91 08:23:58 GMT Sender: news@neon.Stanford.EDU (USENET News System) Organization: Stanford University Lines: 16 I have a routine in a custom view that makes a call to NXRect (I think that is the function. It is like NXDrawButton). It seems that the coordinate system that it uses is different depending on which method calls it. I have a method called selfDraw which seems to work just fine (The origin in the origin of the custom view). The other method that calls it (mouseDown) seems to use the origin of the window that the custom view is in. I do know that to get the coordinates of where the mouse is, I have to send a message to convert to the view coordinate system (That seems to work). My Question: Is there a way to make a C routine that calls the NX functions always use the coordinate system of my custom view? Thanks, Andrew zimmer@calvin.stanford.edu