X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3786c8b587f82e406ba9656847b5bff4ed9209c2..d2b23b67301bd2d286366d4326a21da3132558fa:/docs/latex/wx/menu.tex diff --git a/docs/latex/wx/menu.tex b/docs/latex/wx/menu.tex index d2b4fe2e35..e447788e16 100644 --- a/docs/latex/wx/menu.tex +++ b/docs/latex/wx/menu.tex @@ -73,10 +73,6 @@ With a popup menu, there is a variety of ways to handle a menu selection event \item Set a new event handler for wxMenu, using an object whose class has EVT\_MENU entries. \item Provide EVT\_MENU handlers in the window which pops up the menu, or in an ancestor of this window. -\item Define a callback of type wxFunction, which you pass to the wxMenu constructor. -The callback takes a reference to the menu, and a reference to a -\helpref{wxCommandEvent}{wxcommandevent}. This method is deprecated and should -not be used in the new code, it is provided for backwards compatibility only. \end{enumerate} \wxheading{See also} @@ -127,7 +123,7 @@ and recreation of internal data structures. \membersection{wxMenu::Append}\label{wxmenuappend} -\func{wxMenuItem*}{Append}{\param{int}{ id}, \param{const wxString\& }{ item}, \param{const wxString\& }{helpString = ""},\rtfsp +\func{wxMenuItem*}{Append}{\param{int}{ id}, \param{const wxString\& }{ item = ""}, \param{const wxString\& }{helpString = ""},\rtfsp \param{wxItemKind}{ kind = wxITEM\_NORMAL}} Adds a string item to the end of the menu. @@ -239,9 +235,6 @@ Adds a radio item to the end of the menu. All consequent radio items form a group and when an item in the group is checked, all the others are automatically unchecked. -{\bf NB:} Currently only implemented under Windows and GTK, use -{\tt\#if wxHAS\_RADIO\_MENU\_ITEMS} to test for availability of this feature. - \wxheading{See also} \helpref{wxMenu::Append}{wxmenuappend},\rtfsp @@ -453,7 +446,7 @@ Returns the number of items in the menu. \constfunc{wxMenuItemList\&}{GetMenuItems}{\void} Returns the list of items in the menu. wxMenuItemList is a pseudo-template -list class containing wxMenuItem pointers. +list class containing wxMenuItem pointers, see \helpref{wxList}{wxlist}. \membersection{wxMenu::GetTitle}\label{wxmenugettitle} @@ -478,7 +471,7 @@ menubar. \func{wxMenuItem*}{Insert}{\param{size\_t }{pos}, \param{wxMenuItem *}{item}} \func{wxMenuItem*}{Insert}{\param{size\_t }{pos}, \param{int}{ id},\rtfsp -\param{const wxString\& }{ item}, \param{const wxString\& }{helpString = ""},\rtfsp +\param{const wxString\& }{ item = ""}, \param{const wxString\& }{helpString = ""},\rtfsp \param{wxItemKind}{ kind = wxITEM\_NORMAL}} Inserts the given {\it item} before the position {\it pos}. Inserting the item @@ -572,7 +565,7 @@ true if the menu item is enabled, false otherwise. \func{wxMenuItem*}{Prepend}{\param{wxMenuItem *}{item}} \func{wxMenuItem*}{Prepend}{\param{int}{ id},\rtfsp -\param{const wxString\& }{ item}, \param{const wxString\& }{helpString = ""},\rtfsp +\param{const wxString\& }{ item = ""}, \param{const wxString\& }{helpString = ""},\rtfsp \param{wxItemKind}{ kind = wxITEM\_NORMAL}} Inserts the given {\it item} at position $0$, i.e. before all the other