When I tap my pushbutton with the stylus, I'm missing the events that occur between the penDownEvent and the penUpEvent; namely the ctlEnterEvent and ctlSelectEvent. I set a breakpoint at EvtGetEvent() and see the penDownEvent but the very next time I hit the breakpoint, the event's a penUpEvent.
I have put a CtlEnabled(GetObjectPtr(controlID)) in the code and check the returned result to verify that my control is enabled and it is. It is also visible on the screen. I checked the pen coordinates stored in the event and they fall within the bounds of the control.
I have also tried adding a WinSetCoordinateSystem(kCoordinatesStandard) before I call EvtGetEvent() in case the system doesn't realize the coordinates of the pen are within the boundaries of my control. But that didn't help either.
I am not using any alerts or other dialogs in this while loop which I understand can gobble up events.
while(not EOF....)
{
I WinDrawBitmap a bitmap on a small area of the form. Then I check for events....
bool_ret = CtlEnabled(GetObjectPtr(controlID));
EvtGetEvent(&event, evtNoWait);
if (event.eType == nilEvent)
continue;
if (! SysHandleEvent(&event))
if (! MenuHandleEvent(0, &event, &error))
if (! AppHandleEvent(&event))
{
Check for ctlSelectEvent for the
control I'm interested in.}
}
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
