The LM_Menu class represents a list of commands. A menu by itself does not appear in the user interface - it must be attached to an LM_PopupMenu widget in order to be placed in a dialog box or toolbar. To create a new menu, you would use the following function:
Creates a new LM_Menu object that can then be added to a dialog or toolbar.
Return value (LM_Menu): the newly-created menu title (string): the menu's titleAdds a new command to the bottom of the menu.
Return value: none label (string): the item's text label shortcut (char): a shortcut key used to trigger the menu command msg (int): the message value to send when the command is selected by the userAdds a new command alphabetically to the menu.
Return value: none label (string): the item's text label shortcut (char): a shortcut key used to trigger the menu command msg (int): the message value to send when the command is selected by the userReturns the number of commands in the menu.
Return value (int): the number of commands in the menuRemoves all commands from a menu, leaving the menu empty.
Return value: noneEnables or disables a menu command.
Return value: none msg (int): the message value of the desired command enabled (bool): true to enable the command, false to disable itChecks the enabled status of a menu command.
Return value (bool): true if enabled, false if disabled msg (int): the message value of the desired commandAttaches a checkmark to a menu command.
Return value: none msg (int): the message value of the desired command checked (bool): true to add a checkmark, false to remove a checkmarkAttaches a checkmark to a menu command.
Return value: none label (string): the text label of the matching menu command checked (bool): true to add a checkmark, false to remove a checkmarkTests whether a menu command is checked.
Return value (bool): true if check, false otherwise msg (int): the message value of the desired commandUn-checks all commands in the menu.
Return value: noneReturns the id of the first checked command in the menu (starting at 0 for the first item).
Return value (int): the id of the first checked command in the menuReturns the message value of the first checked command in the menu.
Return value (int): the message value of the first checked command in the menuReturns the text label of the first checked command in the menu.
Return value (string): the text label of the first checked command in the menuReturns the text label of a command in the menu.
Return value (string): the text label of a command in the menu msg (int): the message value of the desired command