Click or drag to resize

Menu.AppendItem Method

X#
Add a string to the end of this menu.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD AppendItem(
	nItemID,
	xNewItem
) AS USUAL CLIPPER
Request Example View Source

Parameters

nItemID (Optional)
Type: Usual
The ID of the new menu item.
xNewItem (Optional)
Type: Usual
One of the following:oBitmap, cNewItem, oHyperLabel, oSubmenu

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
oBitmap The bitmap to appear for the new menu item. cNewItem The text to appear as the new menu item. oHyperLabel The hyperlabel containing the caption to appear as the new menu item. oSubMenu The menu to appear for the new menu item. It is added as a submenu; this is how to construct hierarchical menus.
Tip Tip
If nItemID is specified as MENUSEPARATOR, the second parameter is not needed.
Remarks
After adding a new item to a menu, you must reassign the menu to the owner window's Menu property for the change to take effect.
See Also