wxFilePickerCtrlThis control allows the user to select a file. The generic implementation is a button which brings up a wxFileDialog when clicked. Native implementation may differ but this is usually a (small) widget which give access to the file-chooser dialog. It is only available if wxUSE_FILEPICKERCTRL is set to 1 (the default). Derived from
wxPickerBase Include files <wx/filepicker.h> Window styles
Event handling To process a file picker event, use these event handler macros to direct input to member functions that take a wxFileDirPickerEvent argument.
See also
wxFileDialog, Members
wxFilePickerCtrl::wxFilePickerCtrl
wxFilePickerCtrl::wxFilePickerCtrlwxFilePickerCtrl(wxWindow *parent, wxWindowID id, const wxString& path = wxEmptyString, const wxString& message = "Select a file", const wxString& wildcard = "*.*", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFLP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "filepickerctrl") Initializes the object and calls Create with all the parameters.
wxFilePickerCtrl::Createbool Create(wxWindow *parent, wxWindowID id, const wxString& path = wxEmptyString, const wxString& message = "Select a file", const wxString& wildcard = "*.*", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFLP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "filepickerctrl") Parameters parent
id
path
message
wildcard
pos
size
style
validator
name
Return value true if the control was successfully created or false if creation failed.
wxFilePickerCtrl::GetPathwxString GetPath() const Returns the absolute path of the currently selected file.
wxFilePickerCtrl::SetPathvoid SetPath(const wxString &filename) Sets the absolute path of the currently selected file. This must be a valid file if the wxFLP_FILE_MUST_EXIST style was given.
|