Support Board
Date/Time: Fri, 29 Nov 2024 02:43:32 +0000
Post From: Using ascil to obtain the subgraph color from of another charts study subgraph.
[2023-03-17 14:31:10] |
User92573 - Posts: 530 |
Sorry, yes I read on too far. int32_t GetStudySubgraphColors(int32_t ChartNumber, int32_t StudyID, int32_t StudySubgraphNumber, uint32_t& r_PrimaryColor, uint32_t& r_SecondaryColor, uint32_t& r_SecondaryColorUsed); So, if I then create 3 vars: COLORREF P_COL COLORREF S_COL; int S_COL_USED; Can I then obtain/utilise those values using: SCInputRef MySubgraph_For_Study = sc.Input[0]; // my subgraph sc.GetStudySubgraphColors(1, 1, 0, PrimaryColor, SecondaryColor, SecondaryColorUsed); P_COL = r_PrimaryColor; S_COL = r_SecondaryColor; S_COL_USED = r_SecondaryColorUsed; // int value 0/1 MySubgraph_For_Study.PrimaryColor = P_COL; MySubgraph_For_Study.SecondaryColor = S_COL; MySubgraph_For_Study.SecondaryColorUsed = S_COL_USED; Many thanks |