Xbasic
{TIMER}
Syntax
{TIMER= Timer_Name }
Arguments
- Timer_Name
Character. The name of the timer event.
Description
The {TIMER} command generates timer events. The interval between events is specified by the {INTERVAL} command.
Example
dim cnt as N cnt = 1 ui_modeless_dlg_box("{INTERVAL}",<<%dlg% {timer=increment} {interval=.05} {progress=50cnt} ; %dlg%,<<%code% if a_dlg_button = "increment" then cnt = cnt + 1 if cnt = 100 then cnt = 1 end if end if if a_dlg_button = "close" then ui_modeless_dlg_close("{INTERVAL}") end if %code%)
This example displays a message box for 5 seconds.
ui_dlg_box("Message",<<%dlg% {size=3}{timer=close}{interval=5} This message will display for 5 seconds... %dlg%)
Limitations
Desktop applications only
See Also