Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DspGrayButton

  • Last UpdatedJul 18, 2023
  • 1 minute read

Grays and disables a button. If the button is a symbol, the symbol is overwritten with a gray mask. (When a button is grayed, it cannot be selected.) If the Disabled field in the Buttons database is blank, the button is enabled unless you use this function. If the Disabled field in the Buttons database contains an expression, this function will not override the expression.

Note: This function was designed to only be used on Cicode objects, or the animation point object from the version 3.xx/4.xx toolbox.

Syntax

DspGrayButton(nAN, nMode)

nAN:

The AN where the button is located.

nMode:

The mode of the operation:

0 - Ungray the button.

1 - (GRAY_SUNK) Recess the text or symbol (the text or symbol on the button is recessed and shadowed).

2 - (GRAY_PART) This mode is now obsolete - it now has the same effect as GRAY_ALL.

3 - (GRAY_ALL) - Mask the entire button (a gray mask displays over the face of the button).

Return Value

0 (zero) if successful, otherwise, -1 (if no AN is found).

DspButton, DspButtonFn, DspIsButtonGray

Example

! Disable button at AN21
DspGrayButton(21, GRAY_SUNK);

See Also

Display Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in