Login Page - Create Account

Support Board


Date/Time: Wed, 21 Jan 2026 12:42:41 +0000



[Programming Help] - ACSIL Question - Dynamic coloring of text labels

View Count: 240

[2025-12-03 13:19:27]
gambcl - Posts: 16
Hi, I am drawing a text label using AddAndManageSingleTextDrawingForStudy, which is working fine.

What I would like to do is dynamically change the text/background colors of the label, depending on some threshold values.

I am uncertain how to dynamically change the text/background colors of the label because at the moment they come from the subgraph primary/secondary colors.

Is there a way to use the subgraph colors as the default and then override the label's text/background colors dynamically?

Or do I need to create separate subgraphs for each set of threshold colors and just specify the relevant subgraph to change the label colors?
[2025-12-06 00:02:55]
gambcl - Posts: 16
Replying to my own question, to help anyone else with a similar question.

I ended up creating multiple subgraphs, with different primary/secondary color combinations, and then just use the relevant subgraph each time I call AddAndManageSingleTextDrawingForStudy, and it seems to be working.
[2025-12-07 20:18:21]
ForgivingComputers.com - Posts: 1188
You can set the subgraph colors outside the Set Defaults block, so you don't need extra subgraphs just to change colors.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account