Classes | |
| class | wxDirDialog |
| This class represents the directory chooser dialog. More... | |
Macros | |
| #define | wxDD_CHANGE_DIR 0x0100 |
| #define | wxDD_DIR_MUST_EXIST 0x0200 |
| #define | wxDD_MULTIPLE 0x0400 |
| #define | wxDD_SHOW_HIDDEN 0x0001 |
| #define | wxDD_NEW_DIR_BUTTON 0 |
| #define | wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER) |
Functions | |
| wxString | wxDirSelector (const wxString &message=wxDirSelectorPromptStr, const wxString &default_path=wxEmptyString, long style=0, const wxPoint &pos=wxDefaultPosition, wxWindow *parent=NULL) |
| Pops up a directory selector dialog. More... | |
Variables | |
| const char | wxDirDialogDefaultFolderStr [] = "/" |
| Initial folder for generic directory dialog. More... | |
| const char | wxDirSelectorPromptStr [] = "Select a directory" |
| Default message for directory selector dialog. More... | |
| const char | wxDirDialogNameStr [] = "wxDirCtrl" |
| Default name for directory selector dialog. More... | |
| #define wxDD_CHANGE_DIR 0x0100 |
| #define wxDD_DEFAULT_STYLE (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER) |
| #define wxDD_DIR_MUST_EXIST 0x0200 |
| #define wxDD_MULTIPLE 0x0400 |
| #define wxDD_NEW_DIR_BUTTON 0 |
| #define wxDD_SHOW_HIDDEN 0x0001 |
| wxString wxDirSelector | ( | const wxString & | message = wxDirSelectorPromptStr, |
| const wxString & | default_path = wxEmptyString, |
||
| long | style = 0, |
||
| const wxPoint & | pos = wxDefaultPosition, |
||
| wxWindow * | parent = NULL |
||
| ) |
Pops up a directory selector dialog.
The arguments have the same meaning as those of wxDirDialog::wxDirDialog(). The message is displayed at the top, and the default_path, if specified, is set as the initial selection.
The application must check for an empty return value (if the user pressed Cancel). For example:
Include file:
#include <wx/dirdlg.h>
| const char wxDirDialogDefaultFolderStr[] = "/" |
Initial folder for generic directory dialog.
| const char wxDirDialogNameStr[] = "wxDirCtrl" |
Default name for directory selector dialog.
| const char wxDirSelectorPromptStr[] = "Select a directory" |
Default message for directory selector dialog.