are called. Fixed up wxStaticText to blend the wxST_NO_AUTOSIZE with this new functionality. Made SetBestSize public under the SetBestFittingSize name. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
61 lines
1.5 KiB
TeX
61 lines
1.5 KiB
TeX
\section{\class{wxControl}}\label{wxcontrol}
|
|
|
|
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.
|
|
|
|
\wxheading{Derived from}
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
\wxheading{Include files}
|
|
|
|
<wx/control.h>
|
|
|
|
\wxheading{See also}
|
|
|
|
\helpref{wxValidator}{wxvalidator}
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
\membersection{wxControl::Command}\label{wxcontrolcommand}
|
|
|
|
\func{void}{Command}{\param{wxCommandEvent\& }{event}}
|
|
|
|
Simulates the effect of the user issuing a command to the item. See \helpref{wxCommandEvent}{wxcommandevent}.
|
|
|
|
|
|
\membersection{wxControl::GetAdjustMinSizeFlag}\label{wxcontrolgetadjustminsizeflag}
|
|
|
|
\func{bool}{GetAdjustMinSizeFlag}{}
|
|
|
|
Returns whether the minsize should be adjusted for this control when
|
|
SetLabel or SetFont are called.
|
|
|
|
|
|
\membersection{wxControl::GetLabel}\label{wxcontrolgetlabel}
|
|
|
|
\func{wxString\&}{GetLabel}{\void}
|
|
|
|
Returns the control's text.
|
|
|
|
|
|
\membersection{wxControl::SetAdjustMinSizeFlag}\label{wxcontrolsetadjustminsizeflag}
|
|
|
|
\func{void}{SetAdjustMinSizeFlag}{\param{bool }{adjust}}
|
|
|
|
By default controls will readjust their size and minsize when
|
|
SetLabel or SetFont are called. This flag will allow you to
|
|
control this behavior.
|
|
|
|
\membersection{wxControl::SetLabel}\label{wxcontrolsetlabel}
|
|
|
|
\func{void}{SetLabel}{\param{const wxString\& }{label}}
|
|
|
|
Sets the item's text.
|
|
|