Disables row sizing by dragging with the mouse. Equivalent to passing false to
\helpref{wxGrid::EnableDragRowSize}{wxgridenabledragrowsize}.
-\membersection{wxGrid::DoGetBestSize}\label{wxgriddogetbestsize}
-
-\constfunc{wxSize}{DoGetBestSize}{\void}
-
\membersection{wxGrid::EnableCellEditControl}\label{wxgridenablecelleditcontrol}
\func{void}{EnableCellEditControl}{\param{bool }{enable = true}}
size of the control to the blending of the minsize and bestsize.
\helpref{wxWindow::SetBestFittingSize}{wxwindowsetbestfittingsize} was added to help with this,
although most controls don't need to call it directly because it
- is called indirectly via the SetInitialSize called in the base
+ is called indirectly via the \helpref{SetInitialBestSize}{wxwindowsetinitialbestsize} called in the base
classes.
\end{itemize}
non-control custom windows.)
\begin{itemize}\itemsep=0pt
-\item Either override or inherit a meaningful DoGetBestSize method
+\item Either override or inherit a meaningful \helpref{DoGetBestSize}{wxwindowdogetbestsize} method
that calculates whatever size is "best" for the control. Once
that size is calculated then there should normally be a call to
- CacheBestSize to save it for later use, unless for some reason
+ \helpref{CacheBestSize}{wxwindowcachebestsize} to save it for later use, unless for some reason
you want the best size to be recalculated on every layout.
\item Any method that changes the attributes of the control such that
- the best size will change should call InvalidateBestSize so it
+ the best size will change should call \helpref{InvalidateBestSize}{wxwindowinvalidatebestsize} so it
will be recalculated the next time it is needed.
\item The control's constructor and/or Create method should ensure
that the minsize is set to the size passed in, and that the
control is sized to a blending of the min size and best size.
- This can be done by calling SetBestFittingSize.
+ This can be done by calling \helpref{SetBestFittingSize}{wxwindowsetbestfittingsize}.
\end{itemize}
\docparam{child}{Child window to add.}
+\membersection{wxWindow::CacheBestSize}\label{wxwindowcachebestsize}
+
+\constfunc{void}{CacheBestSize}{\param{const wxSize\& }{size}}
+
+Sets the cached best size value.
+
+
\membersection{wxWindow::CaptureMouse}\label{wxwindowcapturemouse}
\func{virtual void}{CaptureMouse}{\void}
already disabled before the call to this function.
+\membersection{wxWindow::DoGetBestSize}\label{wxwindowdogetbestsize}
+
+\constfunc{virtual wxSize}{DoGetBestSize}{\void}
+
+Gets the size which best suits the window: for a control, it would be
+the minimal size which doesn't truncate the control, for a panel - the
+same size as it would have after a call to \helpref{Fit()}{wxwindowfit}.
+
+
\membersection{wxWindow::DoUpdateWindowUI}\label{wxwindowdoupdatewindowui}
\func{virtual void}{DoUpdateWindowUI}{\param{wxUpdateUIEvent\&}{ event}}
explicitly. When setting both a wxLayoutConstraints and a \helpref{wxSizer}{wxsizer}, only the
sizer will have effect.
+\membersection{wxWindow::SetInitialBestSize}\label{wxwindowsetinitialbestsize}
+
+\func{virtual void}{SetInitialBestSize}{\param{const wxSize\& }{size}}
+
+Sets the initial window size if none is given (i.e. at least one of the
+components of the size passed to ctor/Create() is wxDefaultCoord).
+
\membersection{wxWindow::SetMaxSize}\label{wxwindowsetmaxsize}
\func{void}{SetMaxSize}{\param{const wxSize\& }{size}}