]>
git.saurik.com Git - wxWidgets.git/blob - interface/control.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxControl
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This is the base class for a control or "widget".
15 A control is generally a small window which processes user input and/or
16 displays one or more item of data.
23 class wxControl
: public wxWindow
27 Simulates the effect of the user issuing a command to the item.
31 void Command(wxCommandEvent
& event
);
34 Returns the control's text.
36 @note The returned string contains mnemonics ("&" characters) if it has
37 any, use GetLabelText() if they are undesired.
39 wxString
GetLabel() const;
42 Returns the control's label without mnemonics.
44 const wxString
GetLabelText();
47 Returns the given @a label string without mnemonics.
49 static wxString
GetLabelText(const wxString
& label
);
54 Any "&" characters in the @a label are special and indicate that the
55 following character is a mnemonic for this control and can be used to
56 activate it from the keyboard (typically by using @e Alt key in
57 combination with it). To insert a literal ampersand character, you need
58 to double it, i.e. use "&&".
60 void SetLabel(const wxString
& label
);