Support Board
Date/Time: Mon, 08 Sep 2025 16:11:10 +0000
Post From: ACSIL Windows GDI Wrapper functions with sc.DoNotRedrawChartAfterStudyReturns
[2025-09-02 21:33:37] |
User346098 - Posts: 50 |
I need a Sierra Chart variable or mechanism to ensure the function assigned to sc.p_GDIFunction runs after my Study function returns, even when sc.DoNotRedrawChartAfterStudyReturns == 1. Current behavior with sc.ReceivePointerEvents = ACS_RECEIVE_POINTER_EVENTS_ALWAYS_FOR_ALL_TOOLS: • On sc.PointerEventType == SC_POINTER_MOVE, the Study function is called. • If sc.DoNotRedrawChartAfterStudyReturns == 0, the chart redraws and sc.p_GDIFunction is called (as expected). • If sc.DoNotRedrawChartAfterStudyReturns == 1, there is no redraw, and sc.p_GDIFunction is not called. Separately, I notice sc.p_GDIFunction does get called regardless of the Study or the DoNotRedraw state whenever a redraw is forced by other UI actions: 1. "Any chart movement (zoom in/out with the wheel, pan/scroll left-right, drag)" 2. "Mouse button down" 3. "Returning focus to the chart window" 4. "Selecting a drawing for adjustment" In all of these cases the GDI drawings render correctly. |