Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I have an indicator with a click event defined on the ChartControl:
Does anybody know if there is a possibility to find out if the click happened in the main chart window or if it happened in a sub-panel? I am able to get the x y coordinates of the click and also the size of the ChartPanel but i didnt found a possibility to find out how many sub panels are present.
Thank you,
mike
I never lose. I either win or learn. Nelson Mandela
Did you try in checking with the parent object of sender?
I have a similar indicator but I only used it with a single panel, I'll take a look if it's possible when I have a minute.
i just found a simple solution by using the bounds form the Plot method.
so i simply check if e.Y is between the top and bottom bounds to find out if the click event was fired by the current panel.
cheers,
mike
I never lose. I either win or learn. Nelson Mandela
I assumed you already though about this solution and didn't used it as it was not the "cleanest" way to do it, but I was wrong . And if it works, let it be!