TopBarMenu() > Menu item methods |
Inserts a MenuItem object into a TopBarMenu 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 TopBarMenu object. If <nItemPos> is outside the valid range, the number of menu items remains unchanged.
http://www.xHarbour.com