jcarmody Posted July 17, 2009 Report Share Posted July 17, 2009 I fear I'm missing something obvious. I want to scroll an array indicator with the mouse wheel and this is what I came up with: Is there an easier way? Thanks, Jim Quote Link to comment
hooovahh Posted July 17, 2009 Report Share Posted July 17, 2009 Not that I know of, that's how I would have done it. 1 Quote Link to comment
John Lokanis Posted July 17, 2009 Report Share Posted July 17, 2009 What event are you using to trigger this code? Quote Link to comment
jcarmody Posted July 17, 2009 Author Report Share Posted July 17, 2009 What event are you using to trigger this code? None, it's in the timeout case (which is also polling to see if a case structure is selected). Quote Link to comment
John Lokanis Posted July 17, 2009 Report Share Posted July 17, 2009 Polling...bummer. I really wish they would give us a mouse scroll event! Quote Link to comment
jcarmody Posted July 18, 2009 Author Report Share Posted July 18, 2009 Polling...bummer. I really wish they would give us a mouse scroll event! I'm doing this as part of the work associated with this post. I wonder if I can detect that a Case Structure has been selected by some method other than polling. I'd still have to poll to handle scrolling through the long lists. This sounds like a topic for another post on the VI Scripting forum... I'll try to figure it out myself first. Quote Link to comment
Francois Normandin Posted July 18, 2009 Report Share Posted July 18, 2009 I wonder if I can detect that a Case Structure has been selected by some method other than polling. I'd still have to poll to handle scrolling through the long lists. Would the Mouse Up event be a good time to check if a Case Structure has been selected instead of constant polling? I can think of no ways to select a case structure other than with a left-click or a "mouse down-drag-mouse up" combination. (unless selected programmatically of course). 1 Quote Link to comment
Yair Posted July 18, 2009 Report Share Posted July 18, 2009 I think if you enable the scrollbar on the array control it should work with the wheel. If not, then the one on a listbox should. P.S. I really wish they would give us a mouse scroll event! So would I. 1 Quote Link to comment
jcarmody Posted July 18, 2009 Author Report Share Posted July 18, 2009 Would the Mouse Up event be a good time to check if a Case Structure has been selected instead of constant polling? I can think of no ways to select a case structure other than with a left-click or a "mouse down-drag-mouse up" combination. (unless selected programmatically of course). Doh! Duh... Thanks. Quote Link to comment
jcarmody Posted July 20, 2009 Author Report Share Posted July 20, 2009 Would the Mouse Up event be a good time to check if a Case Structure has been selected instead of constant polling? I can think of no ways to select a case structure other than with a left-click or a "mouse down-drag-mouse up" combination. (unless selected programmatically of course). Doh! Duh... Thanks. I think I slapped my head too soon. I'm trying to detect that a Case Structure was selected in another VI so I need to detect an event at the Application level, no? Quote Link to comment
Francois Normandin Posted July 20, 2009 Report Share Posted July 20, 2009 I think I slapped my head too soon. I'm trying to detect that a Case Structure was selected in another VI so I need to detect an event at the Application level, no? You're totally right. Would there be a way to create a dynamic event to monitor for Mouse Up everytime a new VI is activated (App.VI Activation)? Unfortunately, I don't have time to hazard myself this way... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.