ToolBar.IsEnabled Method (Usual, Usual, Usual) | |
Return a logical value indicating whether the specified button is currently enabled.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD IsEnabled(
nID,
symIDType,
symTB
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual bool IsEnabled(
Usual nID = default,
Usual symIDType = default,
Usual symTB = default
)
Request Example
View SourceParameters
- nID (Optional)
- Type: Usual
The ID of the desired toolbar button item. This can be either the numeric position of the button in the toolbar (the button ID) or the menu item ID. - symIDType (Optional)
- Type: Usual
Symbol indicating the type of data <nButtonID> represents. Valid values are #ButtonID and #MenuItemID. Defaults to #ButtonID. - symTB (Optional)
- Type: Usual
Symbolic name representing the toolbar to be used. Defaults to the main toolbar.
Return Value
Type:
Logic
TRUE if enabled; otherwise, FALSE.
Examples 1
2oTB:IsEnabled(1)
3
4
5oTB:IsEnabled(1, #ButtonID)
6
7
8oTB:IsEnabled(IDM_StandardShellMenu_File_Open_ID, #MenuItemID)
See Also