wxDirDialogThis class represents the directory chooser dialog. Derived from
wxDialog Include files <wx/dirdlg.h> Window styles
NB: on Windows the new directory button is only available with recent versions of the common dialogs. See also Generic window styles. See also wxDirDialog overview, wxFileDialog Members
wxDirDialog::wxDirDialog
wxDirDialog::wxDirDialogwxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = wxDD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxString& name = "wxDirCtrl") Constructor. Use wxDirDialog::ShowModal to show the dialog. Parameters parent
message
defaultPath
style
pos
size
name
wxDirDialog::~wxDirDialog~wxDirDialog() Destructor.
wxDirDialog::GetPathwxString GetPath() const Returns the default or user-selected path.
wxDirDialog::GetMessagewxString GetMessage() const Returns the message that will be displayed on the dialog.
wxDirDialog::SetMessagevoid SetMessage(const wxString& message) Sets the message that will be displayed on the dialog.
wxDirDialog::SetPathvoid SetPath(const wxString& path) Sets the default path.
wxDirDialog::ShowModalint ShowModal() Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL otherwise.
|