wxControl Class Reference
[Controls]

#include <wx/control.h>

Inheritance diagram for wxControl:

wxWindow wxEvtHandler wxObject wxActiveXContainer wxAnimationCtrl wxAuiNotebook wxBitmapToggleButton wxBookCtrlBase wxButton wxCalendarCtrl wxCheckBox wxCollapsiblePane wxComboBox wxComboCtrl wxControlWithItems wxDataViewCtrl wxDatePickerCtrl wxGauge wxGenericDirCtrl wxHyperlinkCtrl wxListCtrl wxMediaCtrl wxPickerBase wxRadioBox wxRadioButton wxRichTextStyleListCtrl wxScrollBar wxSlider wxSpinButton wxSpinCtrl wxSpinCtrlDouble wxStaticBitmap wxStaticBox wxStaticLine wxStaticText wxStyledTextCtrl wxTextCtrl wxToggleButton wxToolBar wxTreeCtrl

List of all members.


Detailed Description

This is the base class for a control or "widget".

A control is generally a small window which processes user input and/or displays one or more item of data.

Library:  wxCore

Category:  Controls

See also:
wxValidator

Public Member Functions

virtual void Command (wxCommandEvent &event)
wxString GetLabel () const
wxString GetLabelText () const
void SetLabel (const wxString &label)

Static Public Member Functions

static wxString GetLabelText (const wxString &label)

Member Function Documentation

virtual void wxControl::Command ( wxCommandEvent event  )  [virtual]

Simulates the effect of the user issuing a command to the item.

See also:
wxCommandEvent

wxString wxControl::GetLabel (  )  const [virtual]

Returns the control's text.

Note:
The returned string contains mnemonics ("&" characters) if it has any, use GetLabelText() if they are undesired.

Reimplemented from wxWindow.

Reimplemented in wxButton, and wxStaticText.

wxString wxControl::GetLabelText (  )  const

Returns the control's label without mnemonics.

static wxString wxControl::GetLabelText ( const wxString label  )  [static]

Returns the given label string without mnemonics.

Reimplemented in wxStaticText.

void wxControl::SetLabel ( const wxString label  )  [virtual]

Sets the item's text.

Any "&" characters in the label are special and indicate that the following character is a mnemonic for this control and can be used to activate it from the keyboard (typically by using Alt key in combination with it). To insert a literal ampersand character, you need to double it, i.e. use "&&".

Reimplemented from wxWindow.

Reimplemented in wxButton, and wxStaticText.



wxWidgets logo

[ top ]