Navigation: thinBasic Modules > UI (User Interface) > DIALOGSs > DIALOG SET TIMER |
|
Description
Creates a dialog timer with the specified time-out value
Syntax
DIALOG SET TIMER hwnd, TimerID, MilliSec [, cbFunction]
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
hwnd |
Number |
No |
Handle of the dialog |
TimerID |
Numeric |
No |
A unique numeric identifier |
MilliSec |
Numeric |
No |
Number of milliseconds to wait |
cbFunction |
Function |
Yes |
NOT YET SUPPORTED. JUST IGNORE IT |
Remarks
After a TIMER is created into a Window, the system automatically posts a %WM_TIMER message to the window message queue.
More timers can be created in the same window.
Restrictions
See also
Examples
...
%IDC_TIMER = 100
%TIMER_DELAY = 150 '---(milliseconds, not very accurate below 100)
...
DIALOG SET TIMER CBHNDL, %IDC_TIMER, %TIMER_DELAY
...
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |