You have to do something like this

do{
    // refresh screen here
}while(!EvtSysEventAvail(false))

Manuel Garc�a Urreta


> Hi all palm developers,
>
> I am new to palm developing. and I need help from u adept guys..
>
> I am trying to capture a camera image from the PDA's SDIO slot ...and I
want to display it  continuously on PDA screen
> I have two buttons "start" and "stop"  obviously the display starts when I
press "start" . now in the code for start I am running a continuous loop for
displaying frames..
> Now I want this to stop after the user taps "stop" button...
> But  when do I get this event since I am in the loop....
>
> I've tried getting event inside the loop by EvtGetEvent()  and checking
for the "stop" button ID event but this doesn't work ...
>
> Or do I have to send the control to Eventloop again and again but this
will take a lot of time.
>
> Do any one have solution for this..
> Please reply ...
>
> Wax
>





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

Reply via email to