BrowseForFolder Method
The BrowseForFolder method displays a 'browse for folder' dialog.
Syntax
[filename=] SiteKiosk.SiteKioskUI.CommonDialogs.
BrowseForFolder(parentwin, rfolder, title, flags)
|
Parameters
| parentwin | Handle to the parent window. |
| rfolder | String that specifies the root folder. |
| title | String that specifies the title. |
| flags | Long value that specifies the flags (BROWSEINFO ulFlags). |
Return Value
Returns a String that contains the absolute path of the saved file.
Remarks
The default flags (if flags is null) are:
BIF_EDITBOX, BIF_NEWDIALOGSTYLE, BIF_RETURNFSANCESTORS, BIF_RETURNONLYFSDIRS, BIF_USENEWUI
Examples
The following example displays a 'browse for folder' dialog and shows the selected filename in an alert window.
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
dialogObj = SiteKiosk.SiteKioskUI.CommonDialogs;
alert(dialogObj.BrowseForFolder(0, "c:/", "title", 0));
</SCRIPT>
|
Applies to
SiteKiosk v6.0 (and later versions).
Volver arriba