FileDialog

Base class for file dialogs.

Modulerequire("gui")
TypeClass

Class properties

Integer optionPickFolders

Option that indicates the open dialog will open folders instead of files.

Integer optionMultiSelect

Option that indicates the open dialog can select multiple items.

Integer optionShowHidden

Option that indicates hidden files will always show in the dialog.

Methods

getResult()

Return the chosen item in dialog.

Return

String

run()

Show the dialog and wait for result, return true if user has chosen item(s).

Return

Boolean

runForWindow(window)

Show the dialog as a modal child of parent window and wait for result, return true if user has chosen item(s).

Parameters

Return

Boolean

setTitle(title)

Set the title of the dialog.

Parameters

setButtonLabel(label)

Set the text of accept button.

Parameters

setFilename(filename)

Set the filename to show in the dialog.

Parameters

setFolder(folder)

Set a folder that is always selected when the dialog is opened

Parameters

setOptions(options)

A bit array of options.

Parameters

setFilters(filters)

Set the file types that the dialog can open or save.

Parameters