Wheel IDE

Online demo »

Component/Timeout

Namespace
components.timeout

Constants

The timeout component module.
Source: lib/modules/components/timeout.whl, line: 8
MODULE_COMPONENT_TIMEOUT133

Module calls for timeout component functions.
Source: lib/modules/components/timeout.whl, line: 11
TIMEOUT_COMPONENT_SET_TIME0
TIMEOUT_COMPONENT_START1
TIMEOUT_COMPONENT_CANCEL2

Properties

These properties can be edited with the property editor in the IDE.

NameTypeDescription
namestringThe component name.
ynumberThe top position of the component icon, this only applies to the icon in design mode.
timenumberThe timeout time in milliseconds.

Events

onTimeout

Called when timeout time is expired.

proc onTimeout(number windowHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the parent window of the timeout component.

Procedures

setTime
Source: lib/modules/components/timeout.whl, line: 24

Set the timeout time.

proc setTime(number windowHandle, number componentHandle, number time)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.
timenumberThe timeout time in milli seconds.

start
Source: lib/modules/components/timeout.whl, line: 33

Start the timeout.

proc start(number windowHandle, number componentHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.

cancel
Source: lib/modules/components/timeout.whl, line: 41

Cancel the timeout.

proc cancel(number windowHandle, number componentHandle)
Parameters:
NameTypeDescription
windowHandlenumberThe handle of the window.
componentHandlenumberThe handle of the component.