From 55f8e9befcb658ddd08c060a43f07ce7807356de Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 7 Nov 2002 11:59:51 +0000 Subject: [PATCH] added a note about deleting the menus git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/menu.tex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/latex/wx/menu.tex b/docs/latex/wx/menu.tex index b382f3af7d..5a42e562f8 100644 --- a/docs/latex/wx/menu.tex +++ b/docs/latex/wx/menu.tex @@ -27,6 +27,13 @@ of the item positions inserting or removing the items in the menu containing the radio items risks to not work correctly. Finally note that the radio items are only supported under Windows and GTK+ currently. +\wxheading{Allocation strategy} + +All menus except the popup ones must be created on the heap. All menus +attached to a menubar or to another menu will be deleted by their parent when +it is deleted. As the frame menubar is deleted by the frame itself, it means +that normally all menus used are deleted automatically. + \wxheading{Derived from} \helpref{wxEvtHandler}{wxevthandler}\\