Click or drag to resize

ToolBar.IsEnabled Method (Usual, Usual, Usual)

X#
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.19
Syntax
 VIRTUAL METHOD IsEnabled(
	nID,
	symIDType,
	symTB
) AS LOGIC CLIPPER
Request Example View Source

Parameters

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
X#
1//check if the first toolbar button is enabled
2oTB:IsEnabled(1)
3//check if the first toolbar button is enabled, specifying a button ID for
4//the first parameter
5oTB:IsEnabled(1, #ButtonID)
6//check if the File Open button is enabled, specifying a menu item ID for
7//the first parameter
8oTB:IsEnabled(IDM_StandardShellMenu_File_Open_ID, #MenuItemID)
See Also