Menu.DisableItem Method | |
Disable a specified menu item (until a subsequent call to Menu:EnableItem()).
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD DisableItem(
nItemID
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual DisableItem(
Usual nItemID = default
)
Request Example
View SourceParameters
- 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 |
---|
You can also use this method to disable a menu item on a submenu. |
See Also