"lpszPictureName" is the name of the picture in which the object was configured.
"Bar1" is the name of the object.
"3.0" is the value to which the upper alarm limit will be set.
SetBackColor example
{
//Set the back color blue
SetBackColor(lpszPictureName,"StaticText1",CO_BLUE);
}
Parameters of the SetBackColor function:
"lpszPictureName" is the name of the picture in which the object was configured.
"StaticText1" is the name of the object.
"CO_BLUE" is the constant for the color "Blue".
Note
Instead of using the constant for the color value you may also specify the color by means of
a hexadecimal value.
SetBorderEndStyle example
{
SetBorderEndStyle(lpszPictureName,"Line", (2|393216));
}
Sets the left line end as filled arrow and the right one as filled circle. The left line end is stored
in
the two lower bytes, the right line end in the two upper bytes. The parameters are transferred
by means of numeric values.
Example of setting the line ends with symbolic names
{
SetBorderEndStyle(lpszPictureName,"Line", (LE_FULL_ARROW|(LE_FULL_CIRCLE <<16));
}
Sets the left line end as filled arrow and the right one as filled circle. The left line end is stored
in the two lower bytes, the right line end in the two upper bytes. To address the right line end
the
symbolic designation "LE_FULL_CIRCLE" is moved by 2 bytes or 16 bit into the two upper
bytes.
ANSI-C function descriptions
3.4 Appendix
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
1512
System Manual, 11/2008,