EvtSetNullEventTick will send you application a nilEvent after at a
specified time.  It takes as its parameter the number of ticks after the
last reset at which to send your application the event.  TimGetTicks will
give you the number of ticks since the last reset and you can use
SysTicksPerSecond to translate seconds into ticks.

The code could look something like this

Boolean openFormOnNextNilEvent = false;

void SetupNullEvent(UInt8 seconds)
{
        openFormOnNextNilEvent = true;
        EvtSetNullEventTick(TimGetTicks() + (seconds * SysTicksPerSecond));
}

void EventLoop()
{
        EventType event;

        do
        {
                EvtGetEvent(&event, evtWaitForEver);

                if (event.eType == nilEvent && openFormOnNextNilEvent)
                {
                        openFormOnNextNilEvent = false;
                        // Close your startup screen and open your form
                }
                else
                {
                        // Normal application-level event handling code
                }
        }
        while(event.eType != appStopEvent);
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of priyesh
parikh
Sent: Wednesday, 11 April 2001 15:52
To: Palm Developer Forum
Subject: How to go to another form after specified Seconds of time


Hello everybody,

I have a startup screen (form) in my application.
I want to go to another form automatically after 5 seconds.
How can i do this?
is there any special command or event?
can anybody provide me sample code.

thanks...

[EMAIL PROTECTED]

_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





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


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

Reply via email to