Lua:createFindDialog
Jump to navigation
Jump to search
<> Reference
function createFindDialog(owner) : FindDialog
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]
local form = createForm()
local dialog = createFindDialog(form)
dialog.OnFind = function(sender)
print("Find: " .. sender.FindText)
end
dialog.execute()
See Also[edit]
Main Pages