Lotfi,

You can change your event loop:



        do
        {
                // Retrieve events and also wake up once a second to
                // do your own thing
                EvtGetEvent(&event, 100);
                        
                // Prevent the auto-off timer from putting the handheld into
                // sleep mode by resetting the auto-off timer every 50
seconds.
                if (TimGetSeconds() - lastResetTime > 50)
                {
                        EvtResetAutoOffTimer();
                        lastResetTime = TimGetSeconds();
                }

                ///////////////////////////////////////
                // Do your redrawing of your toroid
                // here
                ///////////////////////////////////////

                if (! SysHandleEvent(&event))
                {
                        if (! MenuHandleEvent(0, &event, &error))
                        {
                                if (! AppHandleEvent(&event))
                                {
                                        FrmDispatchEvent(&event);
                                }
                        }
                }
        } while (event.eType != appStopEvent);




Regards
Gert van Kruiningen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lotfi
Sent: Friday, 13 August 2004 20:48
To: Palm Developer Forum
Subject: Hi Resoultion mode and Timer ?

Hi

I am drawing 3D and small animated shapes on PalmOS
I have a Zire71
I use the 5 way nav to move the fig and 3D projection
But I need :
* How to go on Hi Resoultion mode (I drew only in 160*160 and need to go on
color and Hi Resolution)
* how to set a timer event or so (say every 0.1 sec) to rotates
automatically a figure

are they tutorial / examples web pages ?

thanks in advance


if u wan a try the prog
http://www.baghli.com/palm_tore.html



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




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

Reply via email to