Popup() > Menu item methods xHarbour Developers Network  

oPopup:delItem()

Deletes a MenuItem object from a Popup object.

Syntax

:delItem( <nItemPos> ) --> self

Arguments

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

Description

Method :delItem() can be used to remove a single menu item from a Popup 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