Thanks for the alarm suggestion.

Using the alarms seems to provide the desired results, however I am having 
trouble with the pen taps. For a test, I am launching the Address Book from 
my application, then the following code on the alarm trigger to tap a button 
on the Address Book screen.  I can see that the New button is briefly 
selected, but it doesn't appear that the ctlEnterEvent is triggered. Do I 
need to seperate the penDownEvent and penUpEvent (in time, with another 
alarm) to get a ctlEnterEvent generated? Or is there some other way to 
generate pen taps.


static void AlarmTriggered(SysAlarmTriggeredParamType * cmdPBP)
{

 EventType evt;

 evt.eType = penDownEvent;
 evt.penDown = true;
 evt.tapCount = 1;
 evt.screenX = 100;
 evt.screenY = 150;
 EvtAddEventToQueue(&evt);

 evt.eType = penUpEvent;
 evt.penDown = false;
 evt.data.penUp.start.x = evt.screenX;
 evt.data.penUp.end.y = evt.screenY;
 evt.data.penUp.start.x = evt.screenX;
 evt.data.penUp.end.y = evt.screenY;
 EvtAddEventToQueue(&evt);

} 



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to