From fd52f2552593cffab61c8b126119fb5e0be47e38 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 29 Oct 2006 20:12:13 +0000 Subject: [PATCH] Clarify docs about wxSizer::SetSizeHints(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/sizer.tex | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex index 73979305da..70c0f5efca 100644 --- a/docs/latex/wx/sizer.tex +++ b/docs/latex/wx/sizer.tex @@ -90,7 +90,7 @@ here: \docparam{window}{The window to be added to the sizer. Its initial size (either set explicitly by the user or calculated internally when using wxDefaultSize) is interpreted as the minimal and in many -cases also the initial size. This is particularly useful in connection with \helpref{SetSizeHints}{wxsizersetsizehints}.} +cases also the initial size.} \docparam{sizer}{The (child-)sizer to be added to the sizer. This allows placing a child sizer in a sizer and thus to create hierarchies of sizers (typically a vertical box as the top sizer and several @@ -492,11 +492,16 @@ after initial creation. \func{void}{SetSizeHints}{\param{wxWindow* }{window}} -Tell the sizer to set (and \helpref{Fit}{wxsizerfit}) the minimal size of the \arg{window} to -match the sizer's minimal size. This is commonly done in the constructor of the window itself, -see sample in the description of \helpref{wxBoxSizer}{wxboxsizer} if the window is resizable -(as are many dialogs under Unix and frames on probably all platforms). +This method first calls \helpref{wxSizer::Fit}{wxsizerfit} and then +\helpref{SetSizeHints}{wxtoplevelwindowsetsizehints} on the {\it window} +passed to it. This only makes sense when {\it window} is actually a +\helpref{wxTopLevelWindow}{wxtoplevelwindow} such as a wxFrame or a +wxDialog, since SetSizeHints only has any effect in these classes. +It does nothing in normal windows or controls. +This method is commonly invoked in the constructor of a toplevel window itself +(see the sample in the description of \helpref{wxBoxSizer}{wxboxsizer}) if the +toplevel window is resizable. \membersection{wxSizer::SetVirtualSizeHints}\label{wxsizersetvirtualsizehints} -- 2.45.2