wxFileDialog
generated from ../src/mod_gui/control/filedlg.cppA dialog for saving or opening a file. The following shows a save dialog:
var dlg = new wxFileDialog(frame, "Save a file");
dlg.style = wxFileDialog.SAVE;
dlg.showModal();
Constants
Style
| Name | Description |
|---|---|
| DEFAULT_STYLE | |
| OPEN | |
| SAVE | |
| OVERWRITE_PROMPT | |
| MULTIPLE | |
| FILE_MUST_EXIST | |
| CHANGE_DIR | |
| PREVIEW |
Constructor
wxFileDialog
wxFileDialog(Parent,
Message = 'Choose a file',
DefaultDir = '',
DefaultFile = '',
WildCard = '*.*',
Style = wxFileDialog.DEFAULT_STYLE,
Position = wxDefaultPosition)
| Name | Type | Default | Description |
|---|---|---|---|
| Parent | wxWindow | The parent of wxFileDialog. | |
| Message | String | 'Choose a file' | The title of the dialog |
| DefaultDir | String | '' | The default directory |
| DefaultFile | String | '' | The default file |
| WildCard | String | '*.*' | A wildcard, such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif". |
| Style | Integer | wxFileDialog.DEFAULT_STYLE | The style |
| Position | wxPoint | wxDefaultPosition | The position of the dialog. |
Constructs a new wxFileDialog object
Properties

© 2002 - 2007 Franky Braem.