wx.ComboCtrl Class Reference

Inheritance diagram for wx.ComboCtrl:

wx.Control wx.Window wx.EvtHandler wx.Object

List of all members.

Public Member Functions

 ComboCtrl (Window parent, string value)
 ComboCtrl (Window parent, string value, System.Drawing.Point position, System.Drawing.Size size, WindowStyles style)
 ComboCtrl (Window parent, int id, string value, System.Drawing.Point position, System.Drawing.Size size, WindowStyles style)
 ComboCtrl (Window parent, int id, string value, System.Drawing.Point position, System.Drawing.Size size, WindowStyles style, string name)
 ComboCtrl ()
virtual void Copy ()
void Create (Window parent, int id, wxString value, System.Drawing.Point position, System.Drawing.Size size, WindowStyles style, wxString name)
void Create (Window parent, int id, string value, System.Drawing.Point position, System.Drawing.Size size, WindowStyles style, string name)
virtual void Cut ()
virtual int GetInsertionPoint ()
virtual long GetLastPosition ()
virtual void HidePopup ()
virtual void OnButtonClick ()
virtual void Paste ()
virtual void Remove (int from, int to)
virtual void Replace (int from, int to, wxString value)
virtual void Replace (int from, int to, string value)
virtual void SetInsertionPoint (int pos)
virtual void SetInsertionPointEnd ()
virtual void SetSelection (int from, int to)
virtual void ShowPopup ()
virtual void Undo ()

Properties

Window Button [get]
override bool Enabled [get, set]
override Font Font [get, set]
bool IsPopupShown [get]
ComboPopup PopupControl [get, set]
Window PopupWindow [get]
TextCtrl TextControl [get]
string Value [get, set]


Detailed Description

The generic combo control available since wxWidgets 2.8. A combo control is a generic combobox that allows totally custom popup. In addition it has other customization features. For instance, position and size of the dropdown button can be changed.

ComboCtrl needs to be told somehow which control to use and this is done by SetPopupControl() . However, we need something more than just a Control in this method as, for example, we need to call SetStringValue("initial text value") and Control doesn't have such a method. So we also need a ComboPopup which is an interface that must be implemented by a control to be usable as a popup.

Refer to wx.DatePicker for an example.


Constructor & Destructor Documentation

wx.ComboCtrl.ComboCtrl (  ) 

2-step construction: Step one before Create().

wx.ComboCtrl.ComboCtrl ( Window  parent,
int  id,
string  value,
System.Drawing.Point  position,
System.Drawing.Size  size,
WindowStyles  style,
string  name 
)

wx.ComboCtrl.ComboCtrl ( Window  parent,
int  id,
string  value,
System.Drawing.Point  position,
System.Drawing.Size  size,
WindowStyles  style 
)

wx.ComboCtrl.ComboCtrl ( Window  parent,
string  value,
System.Drawing.Point  position,
System.Drawing.Size  size,
WindowStyles  style 
)

wx.ComboCtrl.ComboCtrl ( Window  parent,
string  value 
)


Member Function Documentation

virtual void wx.ComboCtrl.Copy (  )  [virtual]

Calls wx.TextCtrl.Copy() of the associaed text control.

void wx.ComboCtrl.Create ( Window  parent,
int  id,
wxString  value,
System.Drawing.Point  position,
System.Drawing.Size  size,
WindowStyles  style,
wxString  name 
)

2-step construction: Step two after calling default CTor. Define the properties of this window.

void wx.ComboCtrl.Create ( Window  parent,
int  id,
string  value,
System.Drawing.Point  position,
System.Drawing.Size  size,
WindowStyles  style,
string  name 
)

2-step construction: Step two after calling default CTor. Define the properties of this window.

virtual void wx.ComboCtrl.Cut (  )  [virtual]

Calls wx.TextCtrl.Cut() of the associaed text control.

virtual int wx.ComboCtrl.GetInsertionPoint (  )  [virtual]

virtual long wx.ComboCtrl.GetLastPosition (  )  [virtual]

virtual void wx.ComboCtrl.HidePopup (  )  [virtual]

Hides the popup.

virtual void wx.ComboCtrl.OnButtonClick (  )  [virtual]

Override for totally custom combo action.

virtual void wx.ComboCtrl.Paste (  )  [virtual]

Calls wx.TextCtrl.Cut() of the associaed text control.

virtual void wx.ComboCtrl.Remove ( int  from,
int  to 
) [virtual]

virtual void wx.ComboCtrl.Replace ( int  from,
int  to,
wxString  value 
) [virtual]

virtual void wx.ComboCtrl.Replace ( int  from,
int  to,
string  value 
) [virtual]

virtual void wx.ComboCtrl.SetInsertionPoint ( int  pos  )  [virtual]

virtual void wx.ComboCtrl.SetInsertionPointEnd (  )  [virtual]

virtual void wx.ComboCtrl.SetSelection ( int  from,
int  to 
) [virtual]

virtual void wx.ComboCtrl.ShowPopup (  )  [virtual]

Shows the popup.

virtual void wx.ComboCtrl.Undo (  )  [virtual]


Property Documentation

Window wx.ComboCtrl.Button [get]

Reads the button that opend the popup control. Please note, that this is not necessarily a Button or a BitmapButton.

override bool wx.ComboCtrl.Enabled [get, set]

Enable or disable cf. read whether enabled or disabled.

Reimplemented from wx.Window.

override Font wx.ComboCtrl.Font [get, set]

Reimplemented from wx.Window.

bool wx.ComboCtrl.IsPopupShown [get]

This is true iff the popup is shown. Read only.

ComboPopup wx.ComboCtrl.PopupControl [get, set]

Get or set the popup control.

Window wx.ComboCtrl.PopupWindow [get]

Reads the window displaying the popup control.

TextCtrl wx.ComboCtrl.TextControl [get]

Reads the text control that is used to display the combo box value.

string wx.ComboCtrl.Value [get, set]


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