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/