]> git.saurik.com Git - wxWidgets.git/commitdiff
add a note explaining that sizers should be heap-allocated (bug 965825)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Oct 2006 00:03:41 +0000 (00:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Oct 2006 00:03:41 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/sizer.tex

index b3442af356e696919f8558a4b6b01b380b27d76e..73979305da598573ef9b6a55b6b786f3cef167c4 100644 (file)
@@ -31,6 +31,12 @@ add empty space of the desired size and attributes, and then use the wxSizerItem
 method to determine where the drawing operations should take place.
 
 
 method to determine where the drawing operations should take place.
 
 
+Please notice that sizers, like child windows, are owned by the library and
+will be deleted by it which implies that they must be allocated on the heap.
+However if you create a sizer and do not add it to another sizer or window, the
+library wouldn't be able to delete such an orphan sizer and in this, and only
+this, case it should be deleted explicitly.
+
 \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.}
 \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.}