LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Update increment (ATTR_INCR_VALUE) of a numeric control while holding mouse key pressed

Solved!
Go to solution

@RobertoBozzolo wrote:

I don't think passing mouse pointer info does make sense in EVENT_VAL_CHANGED: you may be typing in with the keyboard on a control while the mouse is on a very different control or even on another panel or no panel at all!


This is correct Smiley Wink Probably I should not have written 'this information' but rather 'up/down information'. What I had in mind is, e.g. passing a +1 to eventData1 if the numeric value has increased, -1 if the value has decreased, and zero if the value hasn't changed...

0 Kudos
Message 11 of 12
(2,211 Views)

As fa a I know, eventdata1 & eventdata2 have the mouse position relative to the upper left corner of your panel (CVI Panel). If you move the panel on the screen, the application still works. But you have to rewrite the complete functionality of the control (like key press events). You are rght Roberto, there is still work to do to get it completely runing

 

 

 

0 Kudos
Message 12 of 12
(2,208 Views)