Component/Interval
Namespace
components.interval
Constants
The interval component module.
Source: lib/modules/components/interval.whl, line: 8
| MODULE_COMPONENT_INTERVAL | 132 |
Module calls for interval component functions.
Source: lib/modules/components/interval.whl, line: 11
INTERVAL_COMPONENT_SET_TIME | 0 |
INTERVAL_COMPONENT_PAUSE | 1 |
INTERVAL_COMPONENT_RESUME | 2 |
Properties
These properties can be edited with the property editor in the IDE.
Name | Type | Description |
name | string | The component name. |
y | number | The top position of the component icon, this only applies to the icon in design mode. |
time | number | The interval time in milliseconds. |
Events
onInterval
Called when interval time is expired.
proc onInterval(number windowHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The 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:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
time | number | The interval time in milli seconds. |
pause
Source: lib/modules/components/interval.whl, line: 33
Pause the interval.
proc pause(number windowHandle, number componentHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |
resume
Source: lib/modules/components/interval.whl, line: 41
Resume the interval.
proc resume(number windowHandle, number componentHandle)
Parameters:
Name | Type | Description |
windowHandle | number | The handle of the window. |
componentHandle | number | The handle of the component. |