Wheel IDE

Online demo »

Component/Interval

Namespace
components.interval

Constants

The interval component module.
Source: lib/modules/components/interval.whl, line: 8
MODULE_COMPONENT_INTERVAL132

Module calls for interval component functions.
Source: lib/modules/components/interval.whl, line: 11
INTERVAL_COMPONENT_SET_TIME0
INTERVAL_COMPONENT_PAUSE1
INTERVAL_COMPONENT_RESUME2

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 interval time in milliseconds.

Events

onInterval

Called when interval time is expired.

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

Procedures

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

Set the interval time.

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

pause
Source: lib/modules/components/interval.whl, line: 33

Pause the interval.

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

resume
Source: lib/modules/components/interval.whl, line: 41

Resume the interval.

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