File chooser
Filechooser |
The filechooser object provides an easy way for specifying a file name
during run time. It creates a control window where the user can enter
a file name or press a choose button to open a file dialog. In the
property dialog a filter can be specified to provide a file name
selection. The "must exist" property specifies which file dialog to
display:
- If set to Existing file a file-open dialog is displayed to
choose a file name that already exists.
- If set to Write file name a file-save dialog is displayed to
choose a file name that normally not exists.
- If set to Existing directory a choose-directory dialog is
displayed an no files.
If file names are entered manually, file names are currently not checked whether
they are ok or not. With the "Filename" property a file name can be pre
specified or displayed during runtime. If "Execute on change" is set
to "Yes", a new thread is created when the user presses enter or a file is choosen using the dialog. The object
title is displayed as header of the control window.
Fig. 1: File chooser control
The Vimms User Manual