MenuItem() > Instance variables xHarbour Developers Network  

oMenuItem:id

Numeric identifier for a menu item.

Info

Data type:NDefault:NIL

Description

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.


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