]>
git.saurik.com Git - wxWidgets.git/blob - interface/control.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxControl class
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.
20 @appearance{control.png}
25 class wxControl
: public wxWindow
29 Simulates the effect of the user issuing a command to the item. See
32 void Command(wxCommandEvent
& event
);
35 Returns the control's text.
36 Note that the returned string contains the mnemonics (@c characters) if
37 any, use GetLabelText() if they are
40 wxString
GetLabel() const;
44 Returns the control's label, or the given @a label string for the static
45 version, without the mnemonics characters.
47 const wxString
GetLabelText();
48 const static wxString
GetLabelText(const wxString
& label
);
53 The @c characters in the @a label are special and indicate that the
54 following character is a mnemonic for this control and can be used to activate
55 it from the keyboard (typically by using @e Alt key in combination with
56 it). To insert a literal ampersand character, you need to double it, i.e. use
59 void SetLabel(const wxString
& label
);