Support Board
Date/Time: Thu, 23 Jan 2025 18:30:00 +0000
ACSIL - Is there a flag which indicates a chart has become visible?
View Count: 770
[2018-12-07 14:47:24] |
BlakJak - Posts: 108 |
I have a study using GDI and to be efficient I do not always redraw the entire screen unless it has been scrolled or resized. However, I do need to redraw the full GDI screen if the chart becomes visible (after being minimized or being hidden by another ChartBook for some time). Is there a flag in ACSIL that would let me know that the chart has become visible so that I know I need to redraw the full chart GDI? |
[2018-12-07 18:04:22] |
Sierra Chart Engineering - Posts: 104368 |
No, there is not. But the GDI drawing function that Sierra Chart calls, that you have implemented, is given the chart window handle (HWND WindowHandle) and you can remember the window state at each call into a persistent variable and then check for changes. Refer to: sc.GetPersistentInt() 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-12-07 19:17:53] |
BlakJak - Posts: 108 |
Just a question on how to use this. Will my GDI function be called if the window state is no longer visible? My idea is to put a check inside the GDI function to set / check the previous state of the window, however this will not work if the GDI function is not called when WS_VISIBLE flag is not set on the window.
|
[2018-12-07 21:54:40] |
Sierra Chart Engineering - Posts: 104368 |
Probably not because a chart is not drawn if it is not visible. But run a test and see. So if it is not called, not sure what the solution would be.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-12-08 06:59:43] |
BlakJak - Posts: 108 |
Will the study be called if the chart is still open but in the background? If so, I could manage the flag in the main study loop.
|
[2018-12-10 20:21:18] |
Sierra Chart Engineering - Posts: 104368 |
Yes.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: