File Browser
Purpose: |
Display the contents of a local or remote connection in a Windows Explorer style File Browser. Use an existing VisualNEO Win Rectangle object to serve as host for the browser. You can customize the appearance of the browser using fmSetFileBrowserProperties. |
||||
Category: |
File Browser |
||||
Syntax: |
fmShowFileBrowser "connection id" "rectangle" connection id The name assigned to the connection you want to display in the File Browser. The connection must have already been opened with fmConnectLocal or fmConnectRemote. rectangle The name of an existing VisualNEO Win Rectangle object. The Rectangle will serve as a host for the File Browser. Use VisualNEO Win's Tool Palette to create a Rectangle object on the page in your publication where you want the browser to appear. After executing fmShowFileBrowser, the File Browser will appear within the boundaries of the Rectangle object. The File Browser is only visible when the publication is running.
|
||||
Example: |
fmShowFileBrowser "Local1" "Rectangle1" |
Purpose: |
Hide a File Browser previously displayed with the fmShowFileBrowser action. Calling fmHideFileBrowser is optional since any File Browsers that are visible when a publication shuts down will be hidden and their connections closed automatically. |
Category: |
File Browser |
Syntax: |
fmHideFileBrowser "connection id" connection id The name assigned to the connection that owns the File Browser you want to hide. |
Example: |
fmHideFileBrowser "Local1" |
Purpose: |
Customize the visual appearance and behavior of a File Browser. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Category: |
File Browser |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: |
fmSetFileBrowserProperties "connection id" "properties" connection id The name assigned to the connection that owns the File Browser you want to modify. properties This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). Because of the large number of options, it is recommended that you use the wizard provided for the fmSetFileBrowserProperties Action. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example: |
fmSetFileBrowserProperties "Client1" "ViewStyle=Thumbnails;ShowHeader=No" fmShowFileBrowser "Local1" "Rectangle1" |
Purpose: |
Retrieve information about a File Browser. The properties that can be retrieved are the same as those used by the fmSetFileBrowserProperties action. |
|||
Category: |
File Browser |
|||
Syntax: |
fmGetFileBrowserProperties "connection id" "properties" "variable" connection id The name assigned to the connection that owns the File Browser. properties One or more property keywords below. Separate multiple properties with semicolons (;). To retrieve all properties at once, use the keyword "ALL".
See fmSetFileBrowserProperties for descriptions of the properties. variable The name of the variable where the retrieved property or properties will be stored. When a single property is requested, variable will contain the returned value only. When multiple properties are requested, variable will contain the both property name and the returned value separated by an equal sign (=). Each name=value pair will be separated by the current global delimiter. This is the same format used by the fmSetFileBrowserProperties action. |
|||
Example: |
The following example retrieves the position of the browser's splitter that separates the folder tree and the file list: fmGetFileBrowserProperties "Client1" "SplitterPos" "[Temp]" AlertBox "Hello" "The splitter position is [Temp] pixels." The following example retrieves the ViewStyle and ThumbnailHeight properties: fmGetFileBrowserProperties "Client1" "ViewStyle;ThumbnailHeight" "[Temp]" The following example retrieves all properties and saves them to a file called MyApp.inf: fmGetFileBrowserProperties "Local1" "All" "[Temp]" FileWrite "[PubDir]MyApp.inf" "All" "[Temp]" |
Purpose: |
Activate a specific File Browser. The browser must have previously been made visible with fmShowFileBrowser for this action to have any affect. |
Category: |
File Browser |
Syntax: |
fmFocus "connection id" connection id The name assigned to the connection that owns the File Browser you want to activate. |
Example: |
fmFocus "Local1" |
Purpose: |
Set the width of each column in the File Browser's header. This action can be combined with fmGetHeaderColumnWidths to save and restore changes users make to the header. Note: The header can be turned on or off with the fmSetFileBrowserProperties action. The column captions can be customized or translated with the fmTranslateStrings action. |
|||||||||
Category: |
File Browser |
|||||||||
Syntax: |
fmSetHeaderColumnWidths "connection id" "columns" connection id The name assigned to the connection that owns the File Browser. columns A list containing the column name, an equal sign and the width (in pixels) to be assigned to each column. Separated multiple items with a semicolon character (;). This is the same format returned by fmGetHeaderColumnWidths. Valid column names are:
For example, setting the width of the Name, Size, Type, Date and Attributes columns would look like this: "Name=150;Size=90;Type=125;Date=90;Attributes=75" It is not necessary to include every column in the list. You can shorten the action by including only the column's that you want to change. column's not in the list will retain their existing widths. For example: "Name=150;Size=90;Type=125" The DriveName, DriveType, DriveSize and DriveFree columns only appear when the "My Computer" folder is displayed. |
|||||||||
Example: |
fmSetHeaderColumnWidths "Local1" "Name=150;Size=90;Type=125" |
Purpose: |
Get the width of each column in the File Browser's header. Note: The header can be turned on or off with the fmSetFileBrowserProperties action. |
Category: |
File Browser |
Syntax: |
fmGetHeaderColumnWidths "connection id" "variable" connection id The name assigned to the connection that owns the File Browser. variable The name of the variable where the column widths will be stored. The variable format will be identical to that used by the fmSetHeaderColumnWidths action. |
Example: |
fmGetHeaderColumnWidths "Local1" "[ColWidths]" |
Purpose: |
Enable a File Browser. When enabled, the browser can respond to mouse and keyboard events. Use in conjunction with fmDisable. |
Category: |
File Browser |
Syntax: |
fmEnable "connection id" connection id The name assigned to the connection that owns the File Browser you want to enable. |
Example: |
fmEnable "Local1" |
Purpose: |
Disable a File Browser. When disabled, the browser will ignore all mouse and keyboard events. Use in conjunction with fmEnable. |
Category: |
File Browser |
Syntax: |
fmDisable "connection id" connection id The name assigned to the connection that owns the File Browser you want to disable. |
Example: |
fmDisable "Local1" |