]> git.saurik.com Git - wxWidgets.git/blame - interface/control.h
fixed links to global variables; fixed categories; use @see instead of @seealso
[wxWidgets.git] / interface / control.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: control.h
3// Purpose: documentation for wxControl class
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxControl
11 @wxheader{control.h}
7c913512 12
23324ae1 13 This is the base class for a control or "widget''.
7c913512 14
23324ae1
FM
15 A control is generally a small window which processes user input and/or
16 displays one or more item of data.
7c913512 17
23324ae1
FM
18 @library{wxcore}
19 @category{ctrl}
20 @appearance{control.png}
7c913512 21
23324ae1
FM
22 @seealso
23 wxValidator
24*/
25class wxControl : public wxWindow
26{
27public:
28 /**
29 Simulates the effect of the user issuing a command to the item. See
30 wxCommandEvent.
31 */
32 void Command(wxCommandEvent& event);
33
34 /**
35 Returns the control's text.
23324ae1
FM
36 Note that the returned string contains the mnemonics (@c characters) if
37 any, use GetLabelText() if they are
38 undesired.
39 */
328f5751 40 wxString GetLabel() const;
23324ae1
FM
41
42 //@{
43 /**
4cc4bfaf 44 Returns the control's label, or the given @a label string for the static
23324ae1
FM
45 version, without the mnemonics characters.
46 */
47 const wxString GetLabelText();
328f5751 48 const static wxString GetLabelText(const wxString& label);
23324ae1
FM
49 //@}
50
51 /**
52 Sets the item's text.
4cc4bfaf 53 The @c characters in the @a label are special and indicate that the
23324ae1
FM
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
7c913512 56 it). To insert a literal ampersand character, you need to double it, i.e. use
23324ae1
FM
57 @c "".
58 */
59 void SetLabel(const wxString& label);
60};