Support Board
Date/Time: Mon, 25 Nov 2024 16:23:59 +0000
Problem with Subgraph's settings programatically
View Count: 234
[2024-02-25 19:29:32] |
sampater - Posts: 244 |
Sierra Chart Engineering, There's issue with sc.Subgraph[].DisplayNameValueInWindowsFlags variable. If set this value to 0, then Display Name and Value in Region Data Line is still marked in the Study Settings. Using the button Reset Defaults does not work. The same is the case with sc.Subgraph[].IncludeInStudySummary. Thanks in advance! |
[2024-02-27 00:29:21] |
Sierra_Chart Engineering - Posts: 17174 |
We looked at the code and we do not see why there is a problem and we also developed a simple test to test this and cannot see this issue: SCSFExport scsf_TestFunction9(SCStudyInterfaceRef sc)
{ SCSubgraphRef Subgraph_Test = sc.Subgraph[0]; if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Test Function 9"; sc.AutoLoop = 0; sc.SetChartStudyTransparencyLevel(sc.ChartNumber, sc.StudyGraphInstanceID, 43); Subgraph_Test.Name = "Number"; Subgraph_Test.DrawStyle = DRAWSTYLE_TRANSPARENT_CUSTOM_VALUE_AT_Y; Subgraph_Test.PrimaryColor = RGB(0, 255, 0); Subgraph_Test.LineWidth = 8; Subgraph_Test.DrawZeros = false; sc.GraphRegion = 0; return; } sc.Subgraph[0].IncludeInStudySummary = false; } The test only involved: sc.Subgraph[].IncludeInStudySummary. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-02-27 11:30:30] |
sampater - Posts: 244 |
The function sc.Subgraph[].IncludeInStudySummary is indeed working properly. I apologize for my mistake. But there is a problem with the function sc.Subgraph[].DisplayNameValueInWindowsFlags. The variable Display Name and Value in Region Data Line is not turned off. Thank you |
[2024-02-27 12:40:25] |
User907968 - Posts: 823 |
sc.Subgraph[].DisplayNameValueInWindowsFlags does not control Display Name and Value in Region Data Line sc.Subgraph[].DisplayNameValueInDataLine controls Display Name and Value in Region Data Line ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].DisplayNameValueInDataLine |
To post a message in this thread, you need to log in with your Sierra Chart account: