Menu.InsertItem Method (Typed) | |
Insert a new menu item before a specified menu item.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD InsertItem(
nItemID AS USUAL,
xNewItem AS USUAL,
nBeforeID AS LONG
) AS LOGIC
public virtual bool InsertItem(
Usual nItemID,
Usual xNewItem,
int nBeforeID
)
Request Example
View SourceParameters
- nItemID
- Type: Usual
The ID of the new menu item or the sub-menu to add (simply another Menu object). This is how to construct hierarchical menus. - xNewItem
- Type: Usual
One of the following:
cNewItem The caption of the new menu item.
oHyperLabel The hyperlabel containing the caption to appear as the new menu item.
oBitmap The bitmap to appear for the new menu item.
- nBeforeID
- Type: Long
The ID of the menu item before which the new item should be inserted.
Return Value
Type:
Logic
TRUE if successful; otherwise, FALSE.
Remarks
After inserting 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