From e6994168fec352da51e8ccf1fcb41ca996df0297 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Mar 2005 23:49:46 +0000 Subject: [PATCH] more about GetRect() (patch 1158730) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/sizer.tex | 6 ++++++ docs/latex/wx/sizeritem.tex | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex index 22d64fe7e7..c871edc5a9 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.} diff --git a/docs/latex/wx/sizeritem.tex b/docs/latex/wx/sizeritem.tex index ea560aef9e..c52de8cb2b 100644 --- a/docs/latex/wx/sizeritem.tex +++ b/docs/latex/wx/sizeritem.tex @@ -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} -- 2.45.2