File dialogs¶
The file dialogs can be used to select a file for the open or save mode.

Clicking the button opens the file dialog like

After closing the dialog, the selected file is displayed in the button.
Syntax¶
The following value dialog keywords are possible:
<ValueDialog> |
<DefaultDirectories> |
description |
---|---|---|
OpenFileDialog |
yes |
Display a file open dialog |
SaveFileDialog |
yes |
Display a file save dialog |
OpenFavoriteFileDialog |
no, standard |
Display a favorite file open dialog |
SaveFavoriteFileDialog |
no, standard |
Display a favorite file save dialog |
To filter the files displayed in the file dialog, the <FileFilter> tag can be used. The format of the filter must look like pyv-files(pyv-files(*.pyv)|*.pyv|. Multiple filter can be combined.
The default file extension can be set by the <FileExtension> tag.
If the button with the possibility to open default directories is to be added to the left side of the file dialog, the <DefaultDirectories> must be used. The following directories can be displayed
short cut |
directory |
---|---|
etc |
Standard directory |
std |
Office |
usr |
Private |
prj |
Current project |
Example¶
The implementation of the xxxFileDialog value dialog is described in the example AllControls located in