wx.DirSelector Class Reference

List of all members.

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]


Detailed Description

Pops up a directory selector dialog. The arguments have the same meaning as those of wx.DirDialog.DirDialog(). 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:

 string dir = new wx.DirSelector("Choose a folder").Value;
 if ( !dir.empty() )
 {
   ...
 }

Constructor & Destructor Documentation

wx.DirSelector.DirSelector (  ) 

Starts an instance with message string _("Select a file").

wx.DirSelector.DirSelector ( string  message  ) 

Selects a directory displaying the provided message.

Parameters:
message Message string

wx.DirSelector.DirSelector ( string  message,
string  default_path 
)

Selects a directory displaying the provided message.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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


Member Function Documentation

static implicit wx.DirSelector.operator string ( DirSelector  f  )  [static]


Property Documentation

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.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads