Support Board
Date/Time: Fri, 14 Mar 2025 11:39:17 +0000
Post From: ACSIL Control Background and Transparency in
[2025-01-06 10:33:22] |
User92573 - Posts: 548 |
Dear Support I'd be grateful for a little help with the following: My code is as follows and the Subgraph_TextDisplay is populated by 3 values which display as required. Here are the issues: 1) Despite "Subgraph_TextDisplay.SecondaryColorUsed = false;" I still get the color set for the secondary color?
2) When I select "Transparent Background" I get a solid Green background and the study value value part of the text string blocked out? Subgraph_TextDisplay.Name = "Text Display"; Subgraph_TextDisplay.DrawStyle = DRAWSTYLE_CUSTOM_TEXT; //DRAWSTYLE_TRANSPARENT_CUSTOM_VALUE_AT_Y; // DRAWSTYLE_CUSTOM_TEXT; Subgraph_TextDisplay.PrimaryColor = RGB(0, 0, 0); //black Subgraph_TextDisplay.SecondaryColor = RGB(255, 255, 221); // pale yellow Subgraph_TextDisplay.SecondaryColorUsed = false; // Get the value set in the input. int TransparentLabelBackground = Input_TransparentLabelBackground.GetYesNo(); sc.AddAndManageSingleTextDrawingForStudy ( sc , false , Input_HorizontalPosition.GetInt() , Input_VerticalPosition.GetInt() , Subgraph_TextDisplay , TransparentLabelBackground , StringValueText , sc.DrawStudyUnderneathMainPriceGraph? 0 : 1 , UseBoldFont ); // StringValueText is my formatted string that presents correctly. It's the drawing format that I'm struggling with. Any help appreciated. Many thanks. |