ToolBar.IsEnabled Method (Usual, Usual, Usual) | |
Return a logical value indicating whether the specified button is currently enabled.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD IsEnabled(
nID,
symIDType,
symTB
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual 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:
Usual
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