Click or drag to resize

ToolBar.IsDimmed Method (Typed)

X#
Determine whether a button is dimmed.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD IsDimmed(
	nID,
	symIDType,
	symTB
) AS USUAL CLIPPER
Request Example View Source

Parameters

nID (Optional)
Type: Usual
The ID of the button whose state you want to determine. This is either the button ID or the menu item ID, depending on the value of <symLookup>.
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 the button is dimmed; otherwise, FALSE.
Examples
X#
1//check if the first toolbar button is dimmed
2oTB:IsDimmed(1)
3//check if the first toolbar button is dimmed, specifying a button ID for
4//the first parameter
5oTB:IsDimmed(1, #ButtonID)
6//check if the File Open button is dimmed, specifying a menu item ID for
7//the first parameter
8oTB:IsDimmed(IDM_StandardShellMenu_File_Open_ID, #MenuItemID)
See Also