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

AVEVA™ InTouch HMI

ChangeWindowColor() Function

  • Last UpdatedFeb 21, 2017
  • 1 minute read

Changes the color of an open InTouch window and returns a result code.

Syntax

Result = ChangeWindowColor (windowname, rValue, gValue, bValue)

Parameters

windowname

The name of the window for which the color is to be changed. A literal string value, message tagname, or string expression.

rValue

The intensity of the red color. A literal integer value, integer tagname, or integer expression in the range of 0 to 255.

gValue

The intensity of the green color. A literal integer value, integer tagname, or integer expression in the range of 0 to 255.

bValue

The intensity of the blue color. A literal integer value, integer tagname, or integer expression in the range of 0 to 255.

Return Value

A value with the following meaning:

0 - Failure, window is not defined or RGB value is out of range.

1 - Success.

2 - Failure. The window exists, but it is not open.

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