Menu.EnableItem Method (Typed) | ![X#](../icons/logo100.jpg) |
Enable a specified menu item that was previously disabled.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD EnableItem(
nItemID
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual EnableItem(
Usual nItemID = default
)
Request Example
View SourceParameters
- nItemID (Optional)
- Type: Usual
The ID of the menu item to be enabled.
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
Enabling a menu item allows it to generate events and to send the events to its owner window when the user manipulates the menu command. The dimming of disabled menu item is removed, and the menu item is restored to its normal appearance.
By default, menu item are enabled until disabled, so there is no need to call this EnableItem() method unless DisableItem() was previously called.
Tip |
---|
You can also use this method to enable a menu item on a submenu of a menu. |
See Also