Support Board
Date/Time: Mon, 10 Mar 2025 14:33:02 +0000
[Programming Help] - Setting SetCustomStudyControlBarButtonColor
View Count: 420
[2022-03-31 10:16:48] |
User92573 - Posts: 547 |
Dear Support can someone correct me. I thought on reading: sc.SetCustomStudyControlBarButtonColor() ACSIL Function void SetCustomStudyControlBarButtonColor(int ControlBarButtonNum, const uint32_t Color); The sc.SetCustomStudyControlBarButtonColor() function is used to set the background color of the Custom Study Control Bar button specified by the ControlBarButtonNum parameter to the color value specified by the Color parameter. Color is an RGB color value. There are 150 Custom Study Control Bar buttons (1-150), and ControlBarButtonNum specifies which is being changed. That the following would set the control bar button. sc.SetCustomStudyControlBarButtonColor(1, RGB(255,0,0)); I also tried the following which I knew was incorrect but you have to try. sc.SetCustomStudyControlBarButtonColor(1, 255,0,0); Can someone correct me. Many thanks |
[2022-03-31 11:04:59] |
User431178 - Posts: 612 |
All of the following variations work for me, no problem, so maybe there is some other reason/problem? sc.SetCustomStudyControlBarButtonColor(3, RGB(255, 0, 0)); sc.SetCustomStudyControlBarButtonColor(4, COLOR_BLUE); const uint32_t color = RGB(0, 255, 0); sc.SetCustomStudyControlBarButtonColor(5, color); |
To post a message in this thread, you need to log in with your Sierra Chart account: