Class that represents a directory chooser dialog.
// display a directory dialog
// and show a message box with the selected
// path if the user pressed OK
var dlg = new DirectoryDialog;
if (dlg.showDialog())
{
alert(dlg.getPath());
}
Returns the message to display in the directory dialog.
Returns the message to display in the directory dialog.
Returns the path selected by the user.
Returns the path selected by the user.
Sets the message to display in the directory dialog to text.
Sets the initial path to show in the directory dialog.
Returns DialogResult.Ok when the dialog is closed by pressing "OK" or equivalent, and DialogResult.Cancel if the dialog is closed by pressing "Cancel" or equivalent.
Shows a directory dialog and returns DialogResult.Ok if the user closes the directory dialog by pressing "OK", or the equivalent, and DialogResult.Cancel if the user closes the directory dialog by pressing "Cancel", or the equivalent.