06-23-2014 08:22 AM
I am trying to use the mouse wheel to zoom in on a graph. It isn't too hard to do using the mouse wheel event, but my problem is that when I scroll over the graph, the entire window shifts since its vertical scrollbar is visible. I do not want to turn this off, but I do want mouse wheel scroll functionality. When I scroll over a text box, the window does not shift. Is there a way to prevent the window from shifting so using the mouse wheel over the graph acts like using the mouse wheel over the text box?
06-23-2014 09:12 AM
Okay how about you detect the wheel move, and then if you saw a wheel move, move the pane back to where it should be. Attached is a quick example that modifies the shipped example. When you scroll the mouse wheel when over the picture the pane will shift, then shift back. As a result you'll see a small shift up then back to where it was. Not very clean but its a start.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-23-2014 09:43 AM
That is true. I was thinking along those lines of turning off scrollbars and turning them back on, but for that to work I would need a Mouse Wheel? event (the mouse wheel does not trigger Mouse Down? event). But I was hoping for a less messy solution. Maybe I should suggest this in the idea forum.
06-23-2014 10:21 AM
An idea exchange would be a great idea. Having a Mouse Wheel? with a discard would be great.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord