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