]> git.saurik.com Git - wxWidgets.git/commitdiff
more about GetRect() (patch 1158730)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Mar 2005 23:49:46 +0000 (23:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Mar 2005 23:49:46 +0000 (23:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/sizer.tex
docs/latex/wx/sizeritem.tex

index 22d64fe7e7acd0a6115a5b30d8a2ee8c691793ed..c871edc5a97379cb3b82b7ec714a5c6773b57920 100644 (file)
@@ -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.}
index ea560aef9eae316ccd5805b9a38ccd94a12ae890..c52de8cb2b6e15eab04531bb664775bf98de0447 100644 (file)
@@ -112,7 +112,7 @@ Get the ration item attribute.
 
 \func{wxRect}{GetRect}{\void}
 
-Get the rectangle of the item on the parent window.
+Get the rectangle of the item on the parent window, excluding borders.
 
 \membersection{wxSizerItem::GetSize}\label{wxsizeritemgetsize}