Difference between revisions of "Lua:createEdit"
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 edit = createEdit(form) | local edit = createEdit(form) | ||
edit.Text = "Search text" | edit.Text = "Search text" | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Revision as of 19:36, 25 June 2026
Creates a single-line Edit control.
The new Edit belongs to the supplied owner. The owner must inherit from WinControl.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| owner | WinControl | The parent/owner of the new Edit. |
Returns
Edit — The newly created Edit object.
Examples
1 local form = createForm()
2 local edit = createEdit(form)
3 edit.Text = "Search text"