Icon in toolbar:
The File Explorer rooted at "C:\Program Files"
Description
The File Explorer component displays a filesystem tree to the user. It can be rooted at any folder, even network folders. It can also filter the types of files that are displayed by their file extension (For example, "pdf"). The path to the file that the user selects in the tree is exposed in the bindable property Selected Path.
This component is typically used in conjuction with the PDF Viewer component, in order to create a PDF viewing window. This is very useful for viewing things like maintenance manuals from within your project. To create a window like the one shown below follow these steps:
1. | Bind the PDF Viewer's Filename property to the File Explorer's Selected Path property |
2. | Set the File Explorer's File extension filter to "pdf" |
3. | Set the File Explorer's Root Directory to a network folder that has your maintenance manuals in it. (Use a network folder so that all clients will be able to access the manuals). |
The File Explorer used with the PDF Viewer for manual viewing.
Properties
Selected Path
|
selectedPath
|
STRING
|
|
This Read-Only property provides the path to the selected file or folder.
|
Selected Path Is File
|
selectedPathIsFile
|
BOOLEAN
|
|
This Read-Only property is true when the selected path is a file, and false otherwise (i.e., the selected path is a folder).
|
File extension filter
|
fileFilter
|
STRING
|
|
A semicolon separated list of file extensions to display, such as "pdf" or "html;htm;txt;rtf". Leave blank to show all file types.
|
Root Directory
|
rootDir
|
STRING
|
|
The path to the root folder to display. Examples: "C:\Program Files" or "\\fileserver\manuals\Maint Manuals". If blank, the local system's filesystem root is used.
|
Customizer
None.
Events
Scripting Functions
|