Public Member Functions | |
DirSelector (wxString message, wxString default_path, wx.WindowStyles flags, Window parent, int x, int y) | |
DirSelector (string message, string default_path, wx.WindowStyles flags, Window parent, Point position) | |
DirSelector (string message, string default_path, wx.WindowStyles flags, Window parent) | |
DirSelector (string message, string default_path, wx.WindowStyles flags) | |
DirSelector (string message, string default_path) | |
DirSelector (string message) | |
DirSelector () | |
Static Public Member Functions | |
static implicit | operator string (DirSelector f) |
Properties | |
string | Value [get] |
The application must check for an empty return value (if the user pressed Cancel).
For example:
string dir = new wx.DirSelector("Choose a folder").Value; if ( !dir.empty() ) { ... }
wx.DirSelector.DirSelector | ( | ) |
Starts an instance with message string _("Select a file").
wx.DirSelector.DirSelector | ( | string | message | ) |
Selects a directory displaying the provided message.
message | Message string |
wx.DirSelector.DirSelector | ( | string | message, | |
string | default_path | |||
) |
Selects a directory displaying the provided message.
default_path | Starts with this directory. This directory shall exist. | |
message | Message string | |
default_path | Displays files in this path first |
wx.DirSelector.DirSelector | ( | string | message, | |
string | default_path, | |||
wx.WindowStyles | flags | |||
) |
Selects a directory displaying the provided message.
default_path | Starts with this directory. This directory shall exist. | |
message | Message string | |
flags | The window styles |
wx.DirSelector.DirSelector | ( | string | message, | |
string | default_path, | |||
wx.WindowStyles | flags, | |||
Window | parent | |||
) |
Selects a directory displaying the provided message.
message | Message string | |
default_path | Starts with this directory. This directory shall exist. | |
flags | The window styles | |
parent | The parent window |
wx.DirSelector.DirSelector | ( | string | message, | |
string | default_path, | |||
wx.WindowStyles | flags, | |||
Window | parent, | |||
Point | position | |||
) |
Selects a directory displaying the provided message.
message | Message string | |
default_path | Starts with this directory. This directory shall exist. | |
flags | The window styles | |
parent | The parent window | |
position | The position of this dialog |
wx.DirSelector.DirSelector | ( | wxString | message, | |
wxString | default_path, | |||
wx.WindowStyles | flags, | |||
Window | parent, | |||
int | x, | |||
int | y | |||
) |
Selects a directory displaying the provided message.
message | Message string | |
default_path | Starts with this directory. This directory shall exist. | |
flags | The window styles | |
parent | The parent window | |
x | The x-coordinate of this dialog | |
y | The y-coordinate of this dialog |
static implicit wx.DirSelector.operator string | ( | DirSelector | f | ) | [static] |
string wx.DirSelector.Value [get] |
the selected file or the empty string if the user cancelled the input. This, use something like the following to deal with cancelations.
string result=new DirSelector(..).Value; if (result.Length == 0) return; // cancelled input.