Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 09:46:52 +0000



[Programming Help] - Change text background color

View Count: 302

[2022-06-13 09:34:42]
BenjFlame - Posts: 305
Hi,
here is how I define the text initially:

Subgraph_BidVolumeTxt.Name = "Bid Total Text";
Subgraph_BidVolumeTxt.DrawStyle = DRAWSTYLE_TEXT_WITH_BACKGROUND;
Subgraph_BidVolumeTxt.PrimaryColor = RGB(255, 255, 255);
Subgraph_BidVolumeTxt.SecondaryColor = RGB(100, 255, 200);
Subgraph_BidVolumeTxt.LineWidth = 12;
Subgraph_BidVolumeTxt.GraphicalDisplacement = 2;

Then with code, i'm able to change text color:


Subgraph_BidVolumeTxt.DataColor[sc.Index] = RGB(188, 27, 60);


But how to also change the background color of the text?
Date Time Of Last Edit: 2022-06-13 09:35:46

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

Login

Login Page - Create Account