MenuItem() > Instance variables |
Menu selection code block or Popu menu object.
Data type: | B,O | Default: | NIL |
The instance variable :data contains either a code block or a Popup() menu object, unless a menu item's caption is the #define constant MENU_SEPARATOR.
If :data is a code block, it is eveluated when a menu item is selected. The code block receives as parameter the MenuItem object containing the code block.
If :data contains a Popup() menu object, this pop-up menu is opened upon menu selection.
http://www.xHarbour.com