X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e72ac08291dc20516333e784ff0f8bf6d16db38e..c00fed0ef4d70c9b45d9b8405f636d30eadb7ea6:/docs/latex/wx/sizer.tex diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex index 22d64fe7e7..a0c77ab757 100644 --- a/docs/latex/wx/sizer.tex +++ b/docs/latex/wx/sizer.tex @@ -25,6 +25,12 @@ or different window (dialog item) sizes on different platforms without problems. the standard font as well as the overall design of Motif widgets requires more space than on Windows, the initial dialog size will automatically be bigger on Motif than on Windows. +Sizers may also be used to control the layout of custom drawn items on the window. The +Add, Insert, and Prepend functions return a pointer to the newly added wxSizerItem. Just +add empty space of the desired size and attributes, and then use the wxSizerItem::GetRect +method to determine where the drawing operations should take place. + + \pythonnote{If you wish to create a sizer class in wxPython you should derive the class from {\tt wxPySizer} in order to get Python-aware capabilities for the various virtual methods.} @@ -378,7 +384,7 @@ by the sizer to resize themselves according to the rules defined by the paramete \func{void}{SetMinSize}{\param{int }{width}, \param{int }{height}} -\func{void}{SetMinSize}{\param{wxSize }{size}} +\func{void}{SetMinSize}{\param{const wxSize\& }{size}} Call this to give the sizer a minimal size. Normally, the sizer will calculate its minimal size based purely on how much space its children need. After calling this