Difference between revisions of "Lua:createFindDialog"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local form = createForm() | local form = createForm() | ||
local dialog = createFindDialog(form) | local dialog = createFindDialog(form) | ||
| Line 28: | Line 28: | ||
end | end | ||
dialog.execute() | dialog.execute() | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:52, 26 June 2026
Creates a FindDialog for text searches.
Set OnFind to handle a search request. The user-entered search string is available through FindText.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| owner | Component | The component that owns the dialog. |
Returns[edit]
FindDialog — The created FindDialog object.
Examples[edit]
1 local form = createForm()
2 local dialog = createFindDialog(form)
3 dialog.OnFind = function(sender)
4 print("Find: " .. sender.FindText)
5 end
6 dialog.execute()