EventMenuID()

Syntax

#Menu = EventMenuID()
Description
After a WindowEvent() or WaitWindowEvent() command, use this function to determine which menu item has been selected (return the #MenuItem number).

With this command you can also check the selected item of a toolbar created with CreateToolBar().

A toolBar event is like a menu event (as tools are shortcuts for menu items most of the time). So it's a good idea, if the toolbar buttons and the menu items have the same ID, then the same operation can be done on both without any additional code.

Supported OS

All

<- EventGadgetID() - Window Index - EventType() ->