Difference between revisions of "Lua:createToggleBox"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| (One intermediate revision by the same user not shown) | |||
| 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}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:47, 26 June 2026
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"