1 \section{\class{wxControl
}}\label{wxcontrol
}
3 This is the base class for a control or ``widget''.
5 A control is generally a small window which processes user input and/or
6 displays one or more item of data.
8 \wxheading{Derived from
}
10 \helpref{wxWindow
}{wxwindow
}\\
11 \helpref{wxEvtHandler
}{wxevthandler
}\\
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
20 \helpref{wxCore
}{librarieslist
}
24 \helpref{wxValidator
}{wxvalidator
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxControl::Command
}\label{wxcontrolcommand
}
31 \func{void
}{Command
}{\param{wxCommandEvent\&
}{event
}}
33 Simulates the effect of the user issuing a command to the item. See
\helpref{wxCommandEvent
}{wxcommandevent
}.
36 \membersection{wxControl::GetLabel
}\label{wxcontrolgetlabel
}
38 \constfunc{wxString
}{GetLabel
}{\void}
40 Returns the control's text.
42 Note that the returned string contains the mnemonics (
\texttt{\&
} characters) if
43 any, use
\helpref{wxControl::GetLabelText
}{wxcontrolgetlabeltext
} if they are
47 \membersection{wxControl::GetLabelText
}\label{wxcontrolgetlabeltext
}
49 \constfunc{const wxString\&
}{GetLabelText
}{\void}
51 \func{static wxString
}{GetLabelText
}{\param{const wxString\&
}{label
}}
53 Returns the control's label, or the given
\arg{label
} string for the static
54 version, without the mnemonics characters.
57 \membersection{wxControl::SetLabel
}\label{wxcontrolsetlabel
}
59 \func{void
}{SetLabel
}{\param{const wxString\&
}{label
}}
63 The
\texttt{\&
} characters in the
\arg{label
} are special and indicate that the
64 following character is a mnemonic for this control and can be used to activate
65 it from the keyboard (typically by using
\textit{Alt
} key in combination with
66 it). To insert a literal ampersand character, you need to double it, i.e. use