Support Board
Date/Time: Tue, 17 Nov 2026 18:16:50 +0000
Post From: ACSIL: letting a custom study use a left-button drag without scrolling (Pointer/Hand tool)
| [2026-10-05 19:55:39] |
| Sierra_Chart Engineering - Posts: 25432 |
|
1. In 2962, can a custom study call sc.SetActiveDrawingTool(sc.ChartNumber, DRAWING_TOOL_CHART_VALUES, 0) to make Chart Values the active tool, and later sc.SetActiveDrawingTool(sc.ChartNumber, DRAWING_TOOL_POINTER, 0) to return to Pointer? This was the intention of that function but we see that code is not enabled for the release build. We will do this in the next prerelease. Which should be out by tomorrow.Are there any conditions, for example it cannot be called while a Custom Study Control Bar button is enabled, or only from a normal study update and not from a pointer/button event? 2. Which values does it expect? The DrawingTypeEnum constants are DRAWING_TOOL_POINTER = 10, DRAWING_TOOL_CHART_VALUES = 22, DRAWING_TOOL_HAND = 23, Yes these are correct. but sc.CurrentlySelectedDrawingTool reports Pointer = 0, Hand = 52, Chart Values = 2. This variable only returns values, which are not documented but we will work on that.3. In 2957 this call returns 0 and the tool does not change. What does a return value of 0 mean? This will get fixed. The only reason for returning 0 is a chart that is not found or an invalid drawing type.
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 Date Time Of Last Edit: 2026-10-05 19:56:39
|
