Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 15:04:40 +0000



C++ code

View Count: 2006

[2019-03-15 19:04:38]
aknsyu71@gmail - Posts: 59
Dear sierra progammers,

You guys have provided a great example in the GDIExample.cpp of how to draw a rectangle in the window.
Would you be able to expand on this with a sample of how to use WM_LBUTTONDOWN to process mouse clicks on such a rectangle drawing?

I got nowhere after hours of trying as I can handle ACSIL but not C++

I've written the COT indicator in the Custom Study store and hope to add some more useful study's for your users in the future.

Hope you can help.
Kind Regards,
Andrej
[2019-03-17 19:35:51]
Sierra Chart Engineering - Posts: 104368
The pointer events can only be received through a custom study according to the method documented here:
Advanced Custom Study Interaction With Menus, Control Bar Buttons, Pointer Events

Since they are received by a Sierra Chart window you have to rely on getting them through ACSIL.
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
[2019-03-22 18:30:16]
aknsyu71@gmail - Posts: 59
Hi,
we have the sc.ActiveToolYPosition for the Y-axis coordinate in pixels.

Is there any way to obtain the X-axis coordinates in pixels (I dont need the index but rather the pixel position) ?
thanks
[2019-03-22 18:44:27]
Sierra Chart Engineering - Posts: 104368
You can use this function to obtain that for a particular bar index:
sc.BarIndexToXPixelCoordinate
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:

Login

Login Page - Create Account