Lua:createOpenDialog

From Cheat Engine
Revision as of 19:26, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Reference

function createOpenDialog(owner) : OpenDialog

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]

local form = createForm()
local dialog = createOpenDialog(form)
if dialog.execute() then
  print(dialog.FileName)
end

See Also[edit]

Main Pages