X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c17ee7a236b1522896b3c55dd5152d866ad976..c65650d7b5472d00da0a0516ff1a2ccf53746319:/docs/latex/wx/menu.tex diff --git a/docs/latex/wx/menu.tex b/docs/latex/wx/menu.tex index 7daee07d16..21bb91bfab 100644 --- a/docs/latex/wx/menu.tex +++ b/docs/latex/wx/menu.tex @@ -12,7 +12,7 @@ associated command but just makes a separator line appear in the menu. Menu items may be either normal items, check items or radio items. Normal items don't have any special properties while the check items have a boolean flag associated to them and they show a checkmark in the menu when the flag is set. -wxWindows automatically toggles the flag value when the item is clicked and its +wxWidgets automatically toggles the flag value when the item is clicked and its value may be retrieved using either \helpref{IsChecked}{wxmenuischecked} method of wxMenu or wxMenuBar itself or by using \helpref{wxEvent::IsChecked}{wxcommandeventischecked} when you get the menu @@ -68,7 +68,7 @@ not be used in the new code, it is provided for backwards compatibility only. \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxMenu::wxMenu}\label{wxmenuconstr} +\membersection{wxMenu::wxMenu}\label{wxmenuctor} \func{}{wxMenu}{\param{const wxString\& }{title = ""}, \param{long}{ style = 0}} @@ -88,7 +88,7 @@ Constructs a wxMenu object. \docparam{style}{If set to {\tt wxMENU\_TEAROFF}, the menu will be detachable (wxGTK only).} -\membersection{wxMenu::\destruct{wxMenu}} +\membersection{wxMenu::\destruct{wxMenu}}\label{wxmenudtor} \func{}{\destruct{wxMenu}}{\void} @@ -154,6 +154,7 @@ doesn't matter) separated by either {\tt '-'} or {\tt '+'} characters and followed by the accelerator itself. The accelerator may be any alphanumeric character, any function key (from {\tt F1} to {\tt F12}) or one of the special characters listed in the table below (again, case doesn't matter): + \begin{twocollist}\itemsep=0pt \twocolitem{{\tt DEL} or {\tt DELETE}}{Delete key} \twocolitem{{\tt INS} or {\tt INSERT}}{Insert key} @@ -181,7 +182,8 @@ characters listed in the table below (again, case doesn't matter): \helpref{wxMenu::SetHelpString}{wxmenusethelpstring}, \helpref{wxMenuItem}{wxmenuitem} \pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par +implements the following methods: + \indented{2cm}{\begin{twocollist} \twocolitem{{\bf Append(id, string, helpStr="", checkable=false)}}{} \twocolitem{{\bf AppendMenu(id, string, aMenu, helpStr="")}}{} @@ -337,7 +339,7 @@ parent menu (if the item was found)} \wxheading{Return value} -First form: menu item identifier, or wxNOT\_FOUND if none is found. +First form: menu item identifier, or {\tt wxNOT\_FOUND} if none is found. Second form: returns the menu item object, or NULL if it is not found. @@ -676,7 +678,7 @@ menu shortcuts may cease to work. \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxMenuBar::wxMenuBar}\label{wxmenubarconstr} +\membersection{wxMenuBar::wxMenuBar}\label{wxmenubarctor} \func{void}{wxMenuBar}{\param{long }{style = 0}} @@ -703,7 +705,7 @@ Use wxMenuBar.Append instead.} \perlnote{wxPerl only supports the first constructor: use {\tt Append} instead.} -\membersection{wxMenuBar::\destruct{wxMenuBar}} +\membersection{wxMenuBar::\destruct{wxMenuBar}}\label{wxmenubardtor} \func{void}{\destruct{wxMenuBar}}{\void} @@ -784,7 +786,7 @@ associated with a frame. \constfunc{int}{FindMenu}{\param{const wxString\& }{title}} -Returns the index of the menu with the given {\it title} or wxNOT\_FOUND if no +Returns the index of the menu with the given {\it title} or {\tt wxNOT\_FOUND} if no such menu exists in this menubar. The {\it title} parameter may specify either the menu title (with accelerator characters, i.e. {\tt "\&File"}) or just the menu label ({\tt "File"}) indifferently. @@ -803,7 +805,7 @@ Finds the menu item id for a menu name/menu item string pair. \wxheading{Return value} -The menu item identifier, or wxNOT\_FOUND if none was found. +The menu item identifier, or {\tt wxNOT\_FOUND} if none was found. \wxheading{Remarks}