MenuItem() > Instance variables xHarbour Developers Network  

oMenuItem:data

Menu selection code block or Popu menu object.

Info

Data type:B,ODefault:NIL

Description

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.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe