wDirDialog

This class represents the directory chooser dialog. Only modal dialog is supported.

Superclass:wDialog
Styles:
StylesDescription
wDdDirMustExistThe dialog will allow the user to choose only an existing folder.
wDdChangeDirChange the current working directory to the directory chosen by the user.
wDdXpCompatibleUse the Windows XP compatible UI as the dialog.

Consts

wDdDirMustExist = 1
wDdChangeDir = 2
wDdXpCompatible = 4

Procs

proc final(self: wDirDialog) {...}{.raises: [], tags: [].}
Default finalizer for wDirDialog.
proc init(self: wDirDialog; owner: wWindow = nil; message = ""; defaultPath = "";
         style: wStyle = 0) {...}{.validate, raises: [], tags: [].}
Initializer.
proc DirDialog(owner: wWindow = nil; message = ""; defaultPath = ""; style: wStyle = 0): wDirDialog {...}{.
    inline, raises: [], tags: [].}
Constructor.
proc getPath(self: wDirDialog): string {...}{.validate, property, inline, raises: [], tags: [].}
Returns the default or user-selected path.
proc getMessage(self: wDirDialog): string {...}{.validate, property, inline, raises: [],
                                        tags: [].}
Returns the message that will be displayed on the dialog.
proc setPath(self: wDirDialog; path: string) {...}{.validate, property, inline, raises: [],
    tags: [].}
Sets the default path.
proc setMessage(self: wDirDialog; message: string) {...}{.validate, property, inline,
    raises: [], tags: [].}
Sets the message that will be displayed on the dialog.
proc showModal(self: wDirDialog): wId {...}{.validate, discardable, raises: [], tags: [].}
Shows the dialog, returning wIdOk if the user pressed OK, and wIdCancel otherwise.
proc display(self: wDirDialog): string {...}{.validate, inline, discardable, raises: [],
                                     tags: [].}
Shows the dialog in modal mode, returning the selected path or nil.