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?
Solved! Go to Solution.
That worked perfectly. Thanks! I used the Coords indicator in the event handler to define the area where mouse clicks "count."
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.