Navigation:  thinBasic Modules > UI (User Interface) > DIALOGSs >

DIALOG SET TIMER

Previous pageReturn to chapter overviewNext page

 

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

 

DIALOG KILL TIMER ...

 

Examples

 

...

%IDC_TIMER      = 100

%TIMER_DELAY    = 150 '---(milliseconds, not very accurate below 100)

...

DIALOG SET TIMER CBHNDL, %IDC_TIMER, %TIMER_DELAY

...