UpdateTrendAxisColors
function UpdateTrendAxisColors(): void
The function UpdateTrendAxisColors reads the Text property of the TcHmiInput control. If the read Text property is a string for describing colors in hexadecimal format (#RRGGBB
), then this value is used to adjust the BackgroundColor property of the associated TcHmiCheckbox control to visually represent the color. In addition, the color value is stored in an array that serves as the return value of this function. The return value is used, for example, in the function UpdateTrend to be able to adjust the colors of the curves. The following controls are considered by the function:
TcHmi.Controls.Beckhoff.TcHmiInput Control ID | TcHmi.Controls.Beckhoff.TcHmiCheckbox Control ID |
---|---|
Trend_Settings_1_Input | Trend_Settings_1_Rectangle |
Trend_Settings_2_Input | Trend_Settings_2_Rectangle |
Trend_Settings_3_Input | Trend_Settings_3_Rectangle |
Trend_Settings_4_Input | Trend_Settings_4_Rectangle |
Trend_Settings_5_Input | Trend_Settings_5_Rectangle |
Trend_Settings_6_Input | Trend_Settings_6_Rectangle |
Trend_Settings_7_Input | Trend_Settings_7_Rectangle |
Trend_Settings_8_Input | Trend_Settings_8_Rectangle |
Trend_Settings_9_Input | Trend_Settings_9_Rectangle |
Trend_Settings_10_Input | Trend_Settings_10_Rectangle |
Trend_Settings_11_Input | Trend_Settings_11_Rectangle |
Trend_Settings_12_Input | Trend_Settings_12_Rectangle |
Parameter
Name | Type | Description |
---|---|---|
- | - | - |
Return value
Type | Description |
---|---|
string[] | Array with the colors in the syntax that can be used by a TcHmiTrendLineChart control. |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available from version 12.6.0
Usage: TC3 Plastic Application HMI projects