[previous] [up] [next]     [contents] [index]
Next: interval Up: Class Reference Previous: xy-to-position

wx:timer%

Superclass: wx:object%

A wx:timer% object encapsulates an event-based alarm. To use a timer, derive a new class and override the notify method to perform the alarm-based action. Start a timer with start and stop it with stop.

Timers have a high priority in the event queue. Thus, if the timer delay is set low enough, repeated notification for a timer can pre-empt user activities (which might be directed at stopping the timer). For timers with relatively short delays, call wx:yield within the notify procedure to allow guranteed event processing.

Methods:

PLT