X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7af3ca164537ce06c7df5f9923a53a0d82e21cd0..552861bf308cf2fd12f786a5443d379b55f63d81:/docs/latex/wx/tsizer.tex diff --git a/docs/latex/wx/tsizer.tex b/docs/latex/wx/tsizer.tex index 405d8844d3..4f60169188 100644 --- a/docs/latex/wx/tsizer.tex +++ b/docs/latex/wx/tsizer.tex @@ -252,11 +252,9 @@ MyDialog::MyDialog(wxFrame *parent, wxWindowID id, const wxString &title ) 0, // make vertically unstretchable wxALIGN_CENTER ); // no border and centre horizontally - SetAutoLayout( TRUE ); // tell dialog to use sizer - SetSizer( topsizer ); // actually set the sizer + SetSizer( topsizer ); // use the sizer for layout - topsizer->Fit( this ); // set size to minimum size as calculated by the sizer - topsizer->SetSizeHints( this ); // set size hints to honour mininum size + topsizer->SetSizeHints( this ); // set size hints to honour minimum size } \end{verbatim} @@ -286,7 +284,7 @@ sizer. In order to query the size of notebook page, this page needs to have its own sizer, otherwise the wxNotebookSizer will ignore it. Notebook pages -get their size by assigning one to them using \helpref{wxWindow::SetSizer}{wxwindowsetsizer} +get their sizer by assigning one to them using \helpref{wxWindow::SetSizer}{wxwindowsetsizer} and setting the auto-layout option to TRUE using \helpref{wxWindow::SetAutoLayout}{wxwindowsetautolayout}. Here is one example showing how to add a notebook page that the notebook sizer is