If you just need a hard delay, then you can use SysTaskDelay(Int32 ticks)

If event processing must continue, then you can use the nilEvent
and TimGetTicks() or TimGetSeconds() to look for a specific target time.

In your  EvtGetEvent (EventType *event, Int32 timeout) statement put in a
timeout
of maybe 50 and a nilEvent will be generated every 0.5 seconds or so.

There are 100 ticks per second (see SysTicksPerSecond() )

nilEvent
A nilEvent is useful for animation, polling, and similar situations.
The event manager sends this event when there are no events in the
event queue. This can happen if the routine EvtGetEvent is passed
a time-out value (a value other than evtWaitForever, -1). If
EvtGetEvent is unable to return an event in the specified time, it
returns a nilEvent. Different Palm OS versions and different
devices can send nilEvents under different circumstances, so you
might receive a nilEvent even before the timeout has expired.

Tim

"Venkata Tumati" <[EMAIL PROTECTED]> wrote in message
news:67606@palm-dev-forum...
>
> I wanted to know how to have a wait state between two events for example,
in
> the event loop I have two events going off, the first one
> actioN11_cf_();->(simulates the raising off the antenna) and the second
one
> which launched an application actioN12_cf_();->(launching an application).
I
> want to have about 1min before the second event goes off how do I do it.
> -Venkata
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of David
> A. Desrosiers
> Sent: Friday, November 09, 2001 2:11 PM
> To: Palm Developer Forum
> Subject: "Developer Shopping Cart"
>
>
>
> spp.palmos.com, clicking on "Developer Shopping Cart" seems to barf.
>
> Scotcrest07 error '800a005b'
> Object variable or With block variable not set
> /palmos/xt_orderform_start.asp, line 11
>
> I am only reporting it here, since the website provides no contact
> facilities which lead to a unit tasked with maintaining the system, only
> Marketing and Sales, both of don't have interests in fixing the broken
> website.
>
>
>
>
> /d
>
>
>
> --
> 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