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}} | ||
Latest revision as of 19:36, 25 June 2026
<> Reference
function createEdit(owner) : Edit
Creates a single-line Edit control.
The new Edit 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 Edit. |
Returns[edit]
Edit — The newly created Edit object.
Examples[edit]
1 local form = createForm()
2 local edit = createEdit(form)
3 edit.Text = "Search text"
See Also[edit]
Main Pages