Menu.AppendItem Method (Typed) | |
Add a string to the end of this menu.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD AppendItem(
nItemID,
xNewItem
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual AppendItem(
Usual nItemID = default,
Usual xNewItem = default
)
Request Example
View SourceParameters
- 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 |
---|
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