Flavio,

Sorry for my previous post. A better way to get out of a loop is like this:

I needed to have a pause button and had been looking at PenDown event but this does not seem do the job for buttons.

What I ended up doing was calling

EvtGetEvent(&event, 100);
if (! ActionHandleEvent(&event))
{FrmDispatchEvent(&event);
if (check == 1)
   check = 0;
return errNone;}

in my loop and the following script returning global value for variable
'check' which I test to break out of the loop.

case ActionPauseButton:
check=1;
handled = true;
break;

This should do the job works OK.

Barry




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

Reply via email to