![]() ![]() ![]() ![]() 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.
|