]> git.saurik.com Git - wxWidgets.git/commitdiff
Further decorations in changes chapter. Missed methods in their base location.
authorWłodzimierz Skiba <abx@abx.art.pl>
Mon, 6 Dec 2004 17:22:49 +0000 (17:22 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Mon, 6 Dec 2004 17:22:49 +0000 (17:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/grid.tex
docs/latex/wx/tchanges.tex
docs/latex/wx/window.tex

index 74bd1f2a4623fa99ff3df96e3441a98b27e46567..465a1dcec37edf8f69339af8e373b765e265ce03 100644 (file)
@@ -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}}
index d90d946d5d96b63fbd6b4dcc7b50e9269f42fe6e..c7246c6fec94233a5fdefa7ef50cfd913efe53bb 100644 (file)
@@ -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}
 
 
index 34d88a49a0e8eb2931854154da3a267504840705..437cd23a79e4fc9f749118ece82037401fe432b0 100644 (file)
@@ -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}}