05-28-2015 11:29 PM
i am trying to make a gui on which i am having lots of numeric controls
i want that when i scroll mouse wheel i could increment or decerment the valuse of numeric control
i have done this for one control but not able to implement for other controls
*usnig labiew 2009
Solved! Go to Solution.
05-29-2015 03:15 AM
hi,
use the numeric2's value properties, actually as same as you did use numeric's1's property.
also see some more advance mouse wheel events here.
-Amit
05-29-2015 05:34 AM
can not use the same logic for the second numeric control as i am not able to get out of while loop
05-29-2015 09:00 AM - edited 05-29-2015 09:01 AM
hi,
I dont know in LV2009(I use 2014) but there is no logic needed, just hover on the control and scroll it will increment and decrement.
if you cant do this in 2009 then use property node of control called "Built-it Mouse Wheel Support " and use case statement.
-Amit
05-29-2015 09:29 AM
see the attached example
05-29-2015 09:52 AM - edited 05-29-2015 09:53 AM
amitwadje wrote:
I dont know in LV2009(I use 2014) but there is no logic needed,
Native mouse wheel support didn't come until LabVIEW 2013. Until then it was very difficult to get mouse wheel events easily. Some involved .Net, or Windows DLL calls with event call back VIs. I remember this technique even having issues on 64 bit Windows.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-29-2015 11:58 AM
05-29-2015 11:23 PM
hello amitwadje,
no option for built-in mouse wheel support in 2009
05-30-2015 04:55 PM
Hi,
then use Bound and Postion property get cordinates and respective control refrence
I made attached eample, currently only works for numeric (or sepcifically Digtial class controls) , you can modify it for different controls
-Amit
06-01-2015 06:52 AM - edited 06-01-2015 06:54 AM