
BBjWindow::addFileChooser
Description
In BBj 7.0 and higher, this method creates a BBjFileChooser in the BBjWindow.
Syntax
Return Value |
Method |
addFileChooser(int ID, int x, int y, int width, int height, string directory) |
|
addFileChooser(int ID, int x, int y, int width, int height, string directory, string flags) |
Parameters
Variable |
Description |
|
ID |
Specifies the Control ID number. It must be an integer between 1 and 32767 and be unique within a given top level window. |
|
x |
Horizontal position of the upper-left corner of the control in current units. |
|
y |
Vertical position of the upper-left corner of the control in current units. |
|
width |
Width of the control in current units. |
|
height |
Height of the control in current units. |
|
directory |
Initial directory of the FileChooser |
|
flags |
Control flags, as follows: |
|
|
Flag |
Description |
|
$0001$ |
Sets the control to be initially disabled. |
|
$0002$ |
In BBj 16 and higher, show a drop zone to drag and drop files to a client file chooser. Only meaningful for the 'Open' dialog type in conjunction with $0004$ (client filesystem). |
|
$0004$ |
Use the client's filesystem. |
|
$0008$ |
Only allow selection of directories. |
|
$0010$ |
Sets the control to be initially invisible. |
|
$0100$ |
'Save' dialog type. |
|
$0800$ |
Draws a recessed client edge around the control. |
|
$1000$ |
Draws a raised edge around the control |
Return Value
Returns the created BBjFileChooser object.
Remarks
A FileChooser control provides an object-oriented, SYSGUI-managed version of the FILEOPEN/FILESAVE functions. Emulate FILESAVE() using the $0100$ flag.
Use the BBjClientFilesystem object in concert with flag $0004$.

See BUI: Interacting with client files for a detailed discussion of the BUI client-side file choosers.
Example
REM Open SYSGUI channel |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.