From 42e88ddb611d43fe79e1d0c17a764b0848322f1d Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 6 Dec 2004 17:22:49 +0000 Subject: [PATCH] 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 --- docs/latex/wx/grid.tex | 4 ---- docs/latex/wx/tchanges.tex | 10 +++++----- docs/latex/wx/window.tex | 23 +++++++++++++++++++++++ 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/docs/latex/wx/grid.tex b/docs/latex/wx/grid.tex index 74bd1f2a46..465a1dcec3 100644 --- a/docs/latex/wx/grid.tex +++ b/docs/latex/wx/grid.tex @@ -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}} diff --git a/docs/latex/wx/tchanges.tex b/docs/latex/wx/tchanges.tex index d90d946d5d..c7246c6fec 100644 --- a/docs/latex/wx/tchanges.tex +++ b/docs/latex/wx/tchanges.tex @@ -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} diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex index 34d88a49a0..437cd23a79 100644 --- a/docs/latex/wx/window.tex +++ b/docs/latex/wx/window.tex @@ -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}} -- 2.47.2