Jump to content

support for mouse wheel


Recommended Posts

Posted

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:

post-7534-124785029884_thumb.png

Is there an easier way?

Thanks,

Jim

Posted

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).

Posted

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.

Posted

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).

  • Like 1
Posted

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.

  • Like 1
Posted

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.

Posted

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?

Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.