X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2edb0bdef6238c8c246b6978bc14828b7033d931..47610ec22ab01dbc09307a88ab67c1c95f6ee3b1:/docs/latex/wx/tsizer.tex diff --git a/docs/latex/wx/tsizer.tex b/docs/latex/wx/tsizer.tex index dd32bf4bd8..4f60169188 100644 --- a/docs/latex/wx/tsizer.tex +++ b/docs/latex/wx/tsizer.tex @@ -252,10 +252,8 @@ 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 minimum size } \end{verbatim}