Difference between revisions of "Lua:createOpenDialog"
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 = createOpenDialog(form) | local dialog = createOpenDialog(form) | ||
| Line 27: | Line 27: | ||
print(dialog.FileName) | print(dialog.FileName) | ||
end | end | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:52, 26 June 2026
Creates an OpenDialog for selecting files.
Configure dialog properties before calling execute(). Read the selected value only when execute() returns true.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| owner | Component | The component that owns the dialog. |
Returns[edit]
OpenDialog — The created OpenDialog object.
Examples[edit]
1 local form = createForm()
2 local dialog = createOpenDialog(form)
3 if dialog.execute() then
4 print(dialog.FileName)
5 end