Lua:createToggleBox
Jump to navigation
Jump to search
<> Reference
function createToggleBox(owner) : ToggleBox
Creates a ToggleBox control.
The new ToggleBox belongs to the supplied owner. The owner must inherit from WinControl.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| owner | WinControl | The parent/owner of the new ToggleBox. |
Returns[edit]
ToggleBox — The newly created ToggleBox object.
Examples[edit]
1 local form = createForm()
2 local toggle = createToggleBox(form)
3 toggle.Caption = "Toggle overlay"
See Also[edit]
Main Pages