TopBarMenu() > Menu item methods xHarbour Developers Network  

oTopBarMenu:addItem()

Adds a MenuItem object to a TopBarMenu object.

Syntax

:addItem( <oMenuItem> ) --> self

Arguments

<oMenuItem>
This is the MenuItem() object to add to the TopBarMenu object.

Description

Method :addItem() accepts a MenuItem() object and adds it to the internal list of menu items. The return value is the self object. The instance variable :itemCount reflects the new number of MenuItem() objects maintained by a TopBarMenu object.


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