Michael Jones wrote:

Having trouble with this:

I have a program where I want someone to press and hold a button.  For as
long as they hold the pen down on the button, I want a timer on the screen
to increment and update it's display.

Right now I'm doing the following within the ctrlEnterEvent:
(Thanks to Aaron Ardiri for his previous post for that!)
:

/* * If you tell the control to handle the control enter event, it * will fill itself in normally. Something like this before your * loop. */ CtlHandleEvent( eventP->data.ctlSelect.pControl, eventP );


EvtGetPen(&penX, &penY, &penDown);
while (penDown)
{
MemSet(&newEvent, sizeof(EventType), 0);
newEvent.eType = nilEvent;
frmDuration_HandleEvent(&newEvent);
EvtGetPen(&penX, &penY, &penDown);
}


This works since my nilEvent does the updating of the timer, except that the button you push to trigger this never actually shows itself as selected while the pen is down. Meaning, the button never fills in to show it's being pushed.

Anyone now of a better way to accomplish this so that the button properly
shows itself as selected?

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

Reply via email to