Support Board
Date/Time: Sat, 18 Jan 2025 01:47:41 +0000
Could we have access to raw pointer coordinates ?
View Count: 875
[2018-01-12 09:11:03] |
gomifromparis - Posts: 244 |
Title says it all, I'd like to be able to do stuff when specific zones are clicked on. Thanks |
[2018-01-12 14:02:11] |
Sierra Chart Engineering - Posts: 104368 |
See if these functions do what you need: int sc.BarIndexToXPixelCoordinate(int Index); int sc.RegionValueToYPixelCoordinate(float RegionValue, int ChartRegionNumber); There are also structure members to get the current bar index and region value. We will get those in a moment. 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 Date Time Of Last Edit: 2018-01-12 14:02:56
|
[2018-01-12 14:28:27] |
gomifromparis - Posts: 244 |
not really, I would like to test if user clicks in a specified rectangle on the chart, so do test against (x,y) values in window coordinates
Date Time Of Last Edit: 2018-01-12 14:30:08
|
[2018-01-12 20:57:19] |
Sierra Chart Engineering - Posts: 104368 |
But those will give you the coordinates. We updated the documentation to show how that can be done. This is kind of an indirect way of doing it but the data is available. In any case we are going to add this to the next version: sc.PointerVertWindowCoord; sc.PointerHorzWindowCoord; 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-01-15 09:13:51] |
gomifromparis - Posts: 244 |
Got it in 1690, thanks, however the SC_DLL_VERSION was no increased so it will fail with no message on previous versions.
|
[2018-01-15 09:20:55] |
Sierra Chart Engineering - Posts: 104368 |
OK we will increase the version number.
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: