SelectFolderDialog Interface Reference

A SelectFolderDialog represents the standard select folder dialog box that enables the user to select a folder. More...

Inheritance diagram for SelectFolderDialog:

Inheritance graph
Collaboration diagram for SelectFolderDialog:

Collaboration graph
List of all members.

Public Member Functions

 Execute ([out, retval] VARIANT_BOOL *pResult)
 Shows the dialog.
 Close ()
 Closes the dialog.

Properties

ULONG RW Flags []
 This parameter can be a combination of the following values:.
BSTR RW Text []
 Gets or sets the text of the dialog.
BSTR RW Value []
 Gets or sets the selected folder.
BSTR RW Root []
 Specifies the root folder.
BSTR RW StatusText []
 Gets or sets the status text.
BSTR RW Title []
 Gets or sets the title of the dialog.
VARIANT_BOOL RW EnableOK []
 Enables or disables the OK button/.
VARIANT W OnChange []
 Sets the event handler for the OnChange event.

Detailed Description

A SelectFolderDialog represents the standard select folder dialog box that enables the user to select a folder.

The SelectFolderDialog is the result of CreateSelectFolderDialog method.

See also SelectFolderDialogEvents.

Example (JScript):

o = new ActiveXObject("Scripting.WindowSystemObject")

f = o.CreateForm(0,0,0,0)

f.ClientWidth = 500
f.ClientHeight = 300
f.CenterControl()

f.Show()

dialog = f.CreateSelectFolderDialog()
dialog.Flags = o.Translate("BIF_DEFAULT | BIF_STATUSTEXT | BIF_NEWDIALOGSTYLE | BIF_EDITBOX")
dialog.Text = "SelectFolderDialog Sample"
dialog.StatusText = "Status Text"
dialog.Title = "Select folder"
dialog.Execute()

if (dialog.Value == "")
{
        f.MessageBox("No folder selected");
} else
{
        f.MessageBox("Selected folder: "+dialog.Value)
}

o.Run()


Member Function Documentation

Close (  ) 

Closes the dialog.

Execute ( [out, retval] VARIANT_BOOL *  pResult  ) 

Shows the dialog.


Property Documentation

VARIANT_BOOL RW EnableOK

Enables or disables the OK button/.

ULONG RW Flags

This parameter can be a combination of the following values:.

Default: BIF_DEFAULT = BIF_RETURNONLYFSDIRS.

VARIANT W OnChange

Sets the event handler for the OnChange event.

This event occurs when the user changes the selection.

BSTR RW Root

Specifies the root folder.

BSTR RW StatusText

Gets or sets the status text.

BSTR RW Text

Gets or sets the text of the dialog.

BSTR RW Title

Gets or sets the title of the dialog.

BSTR RW Value

Gets or sets the selected folder.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:13:09 2015. (C) Veretennikov A. B. 2004-2015