Click or drag to resize

Menu.DisableItem Method (Typed)

X#
Disable a specified menu item (until a subsequent call to Menu:EnableItem()).

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD DisableItem(
	nItemID
) AS USUAL CLIPPER
Request Example View Source

Parameters

nItemID (Optional)
Type: Usual
The ID of the menu item to be disabled.

Return Value

Type: Usual
A LONG indicating the previous state of the item. If the item does not exist the return value is -1.
Remarks
Disabled menu items are not active and, therefore, they do not send events to their owner windows. Note that under Windows, a disabled menu command is dimmed.
Tip Tip
You can also use this method to disable a menu item on a submenu.
See Also