First, yes, I declare penx and peny as Int16 and set pendown to false, then call EvtGetPen() and check the results.
Now, that you mention 320x320 that brings up an interesting point. I am using v. 5.2 of the os but all of the other screen elements are using 160x160. I.E. I don't think I've put it in high-res mode, unless the pen hardware uses it by default... > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-410253- > [EMAIL PROTECTED] On Behalf Of Logan Shaw > Sent: Monday, February 28, 2005 10:38 PM > To: Palm Developer Forum > Subject: Re: EvtGetPen and Coordinate Systems > > Warren wrote: > > The problem I'm having is, the pen coordinates returned by EvtGetPen > > don't seem to translate to screen coordinates. > > Are you thinking in double-density coordinates? EvtGetPen() only > does "standard" density coordinates. So, it goes from (0,0) up > to (159,159) even on a device that is 320x320. On a 320x480 device, > it goes up to 239. > > I use it all the time for my own custom buttons and button-like things. > It seems to work just great. > > You are declaring penx and peny as Int16 and checking the pendown flag > from the last call to make sure they're valid, right? > > - Logan > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
