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

AVEVA™ Unified Engineering

Gadget Background Color

  • Last UpdatedJan 28, 2025
  • 1 minute read

The gadget methods Background() and setBackground(colourname as STRING) allow you to query and set a gadgets background color as a colorname string. Refer to the table in the Software Customization Reference documentation for definitive list of which gadgets support the methods.

The following restrictions apply:

  • Some gadgets do not support this property in all circumstances, for example, gadgets showing a pixmap.

  • Gadgets whose color has not been set explicitly may not have a color with a known colorname. In this case, an error is raised.

Gadgets also have the Background property, which allows query and setting of the integer color index.

The special color index value, zero, allows you to reset the color of the gadget to its default value. The default color will be different according to the type of the form on which the gadget is defined, and in some cases will not have a colorname string.

TitleResults for “How to create a CRG?”Also Available in