Further decorations in changes chapter. Missed methods in their base location.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c5789d1526
commit
42e88ddb61
@ -346,10 +346,6 @@ false to \helpref{wxGrid::EnableDragGridSize}{wxgridenabledraggridsize}
|
||||
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}}
|
||||
|
@ -66,7 +66,7 @@ wxWindow::m\_font and m\_backgroundColour/m\_foregroundColour are no longer alwa
|
||||
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}
|
||||
|
||||
@ -92,20 +92,20 @@ sizer->Add(win);
|
||||
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}
|
||||
|
||||
|
||||
|
@ -173,6 +173,13 @@ called by the user code.
|
||||
\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}
|
||||
@ -470,6 +477,15 @@ Returns {\tt true} if the window has been disabled, {\tt false} if it had been
|
||||
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}}
|
||||
@ -2592,6 +2608,13 @@ the constraints automatically in OnSize; otherwise, you must override OnSize and
|
||||
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}}
|
||||
|
Loading…
Reference in New Issue
Block a user