Happens when the user selects a menu item that has the ID option. (Menu items without the ID option have their own, individual event handlers. But all menu items with the ID option share this one, MENUID event handler for the window).


Args

ARG(1) is the ID number of the menu item. This number depends upon when the menu item was added. Items added last typically have the highest ID numbers.

ARG(2) is the caption of the menu item. Note that any & or tab characters are not removed. The entire caption, as is, is passed.


Notes

See MENUSELECT, MENUINIT, CONTEXTMENU.