Well, the way I understand it, the hardware that reads the pen taps
maintains a coordinate system that is separate from the display coordinates
- that is the coordinates of the entire display.  For example, if I tap the
pen at the bottom center of my form, I get pen coordinates that are at (26, 
-41).  The same area in display coordinates would be roughly (80, 150).

I suppose I could write a program that tracks the pen vs. screen coordinates
as I move the pen from corner to corner, but I was hoping there was some
official documentation or maybe a palm developer somewhere that could give
me the official word.

Thanks for the reply,
Warren

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-410240-
> [EMAIL PROTECTED] On Behalf Of Miguel Angel Sotomayor Hernandez
> Sent: Monday, February 28, 2005 9:46 PM
> To: Palm Developer Forum
> Subject: Re: EvtGetPen and Coordinate Systems
> 
> I'm not sure, but maybe the button coordinates doesn't correspond to the
> screen coordinates (they are relative to the form). I'm just guessing
> but maybe that's your problem. You should substract the offset of the
> form to the x and y of your pen event and you should get the right
> values where your button is placed in the form.
> 
> Hope this helps
> Miguel
> 
> Warren wrote:
> 
> > Hello All!
> >
> > I have found myself in the position of having to use EvtGetPen to
> > manually check for taps on a specific button.  The reasons I have to
> > do this manually aren't really relevant, so I'll spare you the gory
> > details.
> >
> > The problem I'm having is, the pen coordinates returned by EvtGetPen
> > don't seem to translate to screen coordinates.
> >
> > Does anyone know where I can find info on converting between the two
> > coordinate systems?
> >
> > Thanks in advance,
> > Warren
> >
> 
> --
> 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/

Reply via email to