SIMPOL Documentation

wxdirectorydialog()

Description

Displays a dialog (normally an OS common dialog) to allow the selection of a directory name. This can optionally have an new directory button on those OS's that have the new directory button support in their common dialog for selecting directories.

Prototype

wxdirectorydialog ( type(wxdialogparent) parent, string message, string defaultdirectory, string style, string directory, string result )

Parameters

ParameterDefault valueType nameDescription
parent.nultype(wxdialogparent) Gives the parent of the common dialog, if any.
message""string The text shown in the title bar of the common dialog.
defaultdirectory""string The directory in which the dialog first starts. If this is "" then it will start in the current directory.
style""string This is either the empty string ("") or newdirectorybutton.
directory.nulstring The selected directory will be returned in the string object passed as this parameter. It must be an existing (preinitialized) object.
result.nulstring The result (either "ok" or "cancel") will be returned in the string object passed as this parameter. It must be an existing (preinitialized) object.