Difference between revisions of "Lua:createToggleBox"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Syntax Highlighting.) |
||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local form = createForm() | local form = createForm() | ||
local toggle = createToggleBox(form) | local toggle = createToggleBox(form) | ||
toggle.Caption = "Toggle overlay" | toggle.Caption = "Toggle overlay" | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Latest revision as of 20:35, 25 June 2026
<> 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