GUI Help > General > setGadgetTimer
setGadgetTimer
setGadgetTimer handle gadget, int milliseconds
Description: Adds a timer to a gadget. A timer sends a GADGET_TIMER event to the gadget after the specified amount of time. Set the time to 0 to disable the timer. This has many uses, for example you might want a clock which updates itself once per second, or a trial version of an application which closes after 10 minutes.
Return Value:
Parameters:
gadget | Handle to a gadget.
milliseconds | The time delay between GADGET_TIMER events sent to the gadget. Set this to 0 to turn the timer off.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)