Popup() > Menu item methods |
Inserts a MenuItem object into a Popup object.
:insItem( <nItemPos>, <oMenuItem> ) --> self
Method :insItem() accepts a MenuItem() object and inserts it into the internal list of menu items at position <nItemPos>. The return value is the self object. The instance variable :itemCount reflects the new number of MenuItem() objects maintained by a Popup object. If <nItemPos> is outside the valid range, the number of menu items remains unchanged.
http://www.xHarbour.com