Name
SelectMenuItem -- select a toggle or radio menu item (V6.0)
Synopsis
SelectMenuItem(id, item$)
Function
This function can be used to select a toggle or radio menu item. You have to pass the identifier of the display whose menu strip shall be used as well as the identifier of the item.

Please note that radio groups can only have one active item at a time: This means that if you select a new radio menu item using SelectMenuItem(), the previously selected radio menu item will automatically be deselected.

Please note that you need to pass the identifier of a display to this function. It is not sufficient to pass the identifier of a menu strip because single menu strips can be attached to multiple displays. If you want to address the context menu of a docky on AmigaOS4, pass 0.

Inputs
id
identifier of a display that has a menu strip attached or 0 (see above)
item$
identifier of the item inside the menu strip

Show TOC