Support Board
Date/Time: Sun, 21 Dec 2025 14:05:39 +0000
[Programming Help] - Get exact pointer click coordinates using ACSIL
View Count: 1158
| [2022-10-06 18:40:59] |
| User852621 - Posts: 14 |
|
Hi, is it possible to get exact X mouse coordinates? Specifically I want to detect clicks inside the price column on the chart dom. At the moment my code looks something like this: if (sc.PointerEventType == SC_POINTER_BUTTON_DOWN) { int left = sc.GetDOMColumnLeftCoordinate(n_ACSIL::DOM_COLUMN_PRICE); int right = sc.GetDOMColumnRightCoordinate(n_ACSIL::DOM_COLUMN_PRICE); int pointerXCoordinate = // ?? HOW DO I GET THIS VALUE if(pointerXCoordinate > left && pointerXCoordinate < right) { // clink inside price column } } |
| [2022-10-06 19:34:56] |
| User431178 - Posts: 829 |
|
ACSIL Interface Members - Variables and Arrays: sc.PointerHorzWindowCoord ACSIL Interface Members - Variables and Arrays: sc.PointerVertWindowCoord |
To post a message in this thread, you need to log in with your Sierra Chart account:
