This class represents the directory chooser dialog.
DD_DEFAULT_STYLE |
Equivalent to a combination of DEFAULT_DIALOG_STYLE and RESIZE_BORDER (the last one is not used under WinCE). |
DD_DIR_MUST_EXIST |
The dialog will allow the user to choose only an existing folder. When this style is not given, a “Create new directory” button is added to the dialog (on Windows) or some other way is provided to the user to type the name of a new folder. |
DD_CHANGE_DIR |
Change the current working directory to the directory chosen by the user. |
NB: on Windows the new directory button is only available with recent versions of the common dialogs.
See also Generic window styles.
DirDialog overview, FileDialog
DirDialog.new(Window parent, String message = "Choose a directory",
String defaultPath = "",
Integer style = DD_DEFAULT_STYLE,
Point pos = DEFAULT_POSITION,
Size size = DEFAULT_SIZE,
String name = "DirCtrl")
Constructor. Use DirDialog#show_modal to show the dialog.
destructor()
Destructor.
String get_path()
Returns the default or user-selected path.
String get_message()
Returns the message that will be displayed on the dialog.
set_message(String message)
Sets the message that will be displayed on the dialog.
set_path(String path)
Sets the default path.
Integer show_modal()
Shows the dialog, returning ID_OK if the user pressed OK, and ID_CANCEL otherwise.
[This page automatically generated from the Textile source at Thu May 01 00:50:35 +0100 2008]