back to gui 

wxFileDialog

generated from ../src/mod_gui/control/filedlg.cpp

A 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
OPEN
SAVE
OVERWRITE_PROMPT
MULTIPLE

Constructor

wxFileDialog

wxFileDialog(Parent, 
             Message = 'Choose a file', 
             DefaultDir = '', 
             DefaultFile = '', 
             WildCard = '*.*', 
             Style = 0, 
             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 0 The style
Position wxPoint wxDefaultPosition The position of the dialog.

Constructs a new wxFileDialog object

Properties

Name Type Description
directory String Get/Set the default directory
filename String Get/Set the default filename
filenames read only Array Get an array of the selected file names
filterIndex Integer Get/Set the filter index (wildcards)
message String Get/Set the message of the dialog
path String Get/Set the full path of the selected file
paths read only Array Gets the full path of all selected files
wildcard String Gets/Sets the wildcard such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".


SourceForge.net Logo Support This Project

Table of Contents

Prototype

wxDialog

Constructor

wxFileDialog

Properties

directory
filename
filenames
filterIndex
message
path
paths
wildcard


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.