10-20-2014 06:28 PM
Hi All,
I am using a "Mouse Down" event on an image to record the X and Y coordinates of the click and to increment a counter. My problem is that I am looking at an image with a scroll bar that I want to use to adjust which part of the image is visible. When I click on the scroll bar, I trigger the Mouse Down event and increment the counter, which I do not want to do.
Is there a way to set up a Mouse Down event so that it will ignore clicks on image scroll bars? If not, can you think of another way to accomplish what I am trying to do?
Thanks!
Solved! Go to Solution.
10-20-2014 08:20 PM
10-21-2014 11:41 AM
That worked perfectly. Thanks! I used the Coords indicator in the event handler to define the area where mouse clicks "count."
10-21-2014 12:14 PM
You can do this dynamically with these property nodes:
"DrawAreaSize" will give you the draw are size of the picture excluding scrollbars, the "Mouse"-cluster contains information of the mouse position within the picture control (starting at 0,0). Hence X & Y position have to be smaller than "width" and "height" of the draw area in order to count as a valid click.
Regards, Jens