X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/515da557f1dcd6ec579bf0ca548b02b27e861c79..96db102a93ed103a1c757c4445dd71789c2d0054:/docs/latex/wx/boxsizer.tex?ds=sidebyside diff --git a/docs/latex/wx/boxsizer.tex b/docs/latex/wx/boxsizer.tex index 2f765063cd..1e10ddc109 100644 --- a/docs/latex/wx/boxsizer.tex +++ b/docs/latex/wx/boxsizer.tex @@ -16,8 +16,8 @@ the buttons shall be centred as the width of the dialog changes. It is the unique feature of a box sizer, that it can grow in both directions (height and width) but can distribute its growth in the main direction (horizontal for a row) {\it unevenly} among its children. In our example case, the vertical sizer is supposed to propagate all its -height changes to only the text area, not to the button area. This is determined by the -{\it option} parameter when adding a window (or another sizer) to a sizer. It is interpreted +height changes to only the text area, not to the button area. This is determined by the {\it option} parameter +when adding a window (or another sizer) to a sizer. It is interpreted as a weight factor, i.e. it can be zero, indicating that the window may not be resized at all, or above zero. If several windows have a value above zero, the value is interpreted relative to the sum of all weight factors of the sizer, so when adding two windows with @@ -77,17 +77,13 @@ MyDialog::MyDialog(wxFrame *parent, wxWindowID id, const wxString &title ) : topsizer->Fit( this ); // set size to minimum size as calculated by the sizer topsizer->SetSizeHints( this ); // set size hints to honour mininum size - } \end{verbatim} - \wxheading{Derived from} \helpref{wxSizer}{wxsizer} - -\latexignore{\rtfignore{\wxheading{Members}}} - +\helpref{wxObject}{wxobject} \membersection{wxBoxSizer::wxBoxSizer}\label{wxboxsizerwxboxsizer} @@ -100,13 +96,22 @@ or wxHORIZONTAL for creating either a column sizer or a row sizer. \func{void}{RecalcSizes}{\void} +Implements the calculation of a box sizer's dimensions and then sets +the size of its its children (calling \helpref{wxWindow::SetSize}{wxwindowsetsize} +if the child is a window). It is used internally only and must not be called +by the users. Documented for information. \membersection{wxBoxSizer::CalcMin}\label{wxboxsizercalcmin} \func{wxSize}{CalcMin}{\void} +Implements the calculation of a box sizer's minimal. It is used internally +only and must not be called by the users. Documented for information. \membersection{wxBoxSizer::GetOrientation}\label{wxboxsizergetorientation} \func{int}{GetOrientation}{\void} +Returns the orientation of the boxsizer, either of wxVERTICAL +or wxHORIZONTAL. +