TopBarMenu() > Menu item methods xHarbour Developers Network  

oTopBarMenu:delItem()

Deletes a MenuItem object from a TopBarMenu object.

Syntax

:delItem( <nItemPos> ) --> self

Arguments

<nItemPos>
This is a numeric value specifying the ordinal position of the menu item to delete from the TopBarMenu object. Menu items are numbered from 1 to :itemCount.

Description

Method :delItem() can be used to remove a single menu item from a TopBarMenu object. This can be useful when the number of selectable menu items changes dynamically at runtime, depending on a condition. Alternatively, single menu items can be disabled or enabled.


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