Lua:createFindDialog
Jump to navigation
Jump to search
Creates a FindDialog for text searches.
Set OnFind to handle a search request. The user-entered search string is available through FindText.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| owner | Component | The component that owns the dialog. |
Returns
FindDialog — The created FindDialog object.
Examples
1 local form = createForm()
2 local dialog = createFindDialog(form)
3 dialog.OnFind = function(sender)
4 print("Find: " .. sender.FindText)
5 end
6 dialog.execute()