|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| disk.dialogBox.folder(parent, infoText, newStyle, defaultFolder, showFiles, showEditBox) |
Parameters
| WindowID | parent | Parent window ID, or null. Specify a window ID if your application stays on top, so the dialog box is not overlaped by the window.
| | STRING | infoText | String that is displayed above the tree view control in the dialog box. This string can be used to specify instructions to the user.
| | BOOL | newStyle | Optional. Default is false. Set to true to use the latest Windows API (recommanded).
| | STRING | defaultFolder | Optional. Specify the folder to be opened when the dialog box is prompted.
| | BOOL | showFiles | Optional. Default is false. Set to true to show the files and folders, false to show folders only.
| | BOOL | showEditBox | Optional. Default is false. Set to true to show the edit box. |
Return value
| File or folder selected by the user, or an empty string if the user clicks on Cancel. |
Description
Shows the standard Windows dialog box with a treeview to select a folder or file.
You should disable the windows of your application while the dialog box is visible with window.ID.enabled. |
MioScript Sample Code
&path = disk.dialogBox.folder(main, "Select a folder", true, path.desktop())
alert(&path) |
|
|
|