Hi all-

This is a quickie that I just want confirmation on...

EvtGetEvent() grabs an EventType...

typedef struct {
        enum events    eType;
        Boolean        penDown;
        SWord          screenX;
        SWord          screenY;
        // ....
}

 From the headers one would assume that event.screenX and 
event.screenY are DISPLAY-RELATIVE; however, someone has found a bug 
in one of our apps that leads me to think that they are actually 
WINDOW-RELATIVE. Looking at the sources seems to corroborate this... 
so which is it? Also, does PenGetPoint/EvtGetPen return 
SCREEN-RELATIVE or WINDOW-RELATIVE coordinates?

And, if the answer is that the coords are WINDOW-RELATIVE, should 
these parameters be renamed to windowX/windowY to avoid future 
confusion?

Thanks,

Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293

Reply via email to