MenuItem() > Instance variables |
Numeric identifier for a menu item.
Data type: | N | Default: | NIL |
The instance variable :ID is assigned the fifth parameter passed to the :new() method. It can be used to uniquely identify a menu item when a user makes a menu selection. Refer to the example of the TopBarMenu() class to see how :ID can be used for branching program cotrol within a SWITCH statement.
http://www.xHarbour.com