LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use mouse scroll wheel to change numeric control

Does anyone know if and how I can use the mouse scroll wheel to change numeric control values?

0 Kudos
Message 1 of 21
(4,365 Views)

Good question. Am not sure whether it is available or not but you can use the keyboard Up and Down buttons to change the value (You made me think why not for Mouse scroll button).

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 21
(4,361 Views)

You can look into the following thread:

http://forums.ni.com/t5/LabVIEW/Mouse-wheel-scroll-event-ON-CHANGE/m-p/1137666#M501292

 

The link points to a post that has an example VI that shows how to capture the scroll wheel events.  Run ME_Example.vi to see how it works.

Systems Engineer
SISU
0 Kudos
Message 3 of 21
(4,324 Views)

You could cheat a bit...  There are two hidden cases that set the boolean in the Shift Register True or False when the Numeric Mouse Enter and Mouse Leave events occur.

 

Example_VI_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 4 of 21
(4,310 Views)

Thanks.  I will digest this then maybe I can integrate this into my apps..

0 Kudos
Message 5 of 21
(4,298 Views)

Jcarmody, thank you for the screen shot.  I like this one.  Can you also show the hidden event cases or attach the vi?

0 Kudos
Message 6 of 21
(4,297 Views)

Another option would be to change the timeout.  This would avoid the timeout event every ms when the mouse has not "entered" the contol.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 21
(4,294 Views)

Crossrulz, thank you for the vi.  Can you save it as 2010?

0 Kudos
Message 8 of 21
(4,289 Views)

I gotta start remembering to save for previous when I post...

 

Saved in 2009.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 21
(4,286 Views)

Thanks.

0 Kudos
Message 10 of 21
(4,278 Views)