LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Key Down? Bug

Solved!
Go to solution

Key Down? Event does not work properly for sliders with numerics visible.  Please see attachments.

First try the ordinary numeric which works correctly.  Now try the slider numeric and observe that

you cannot type in a 2 digit number.

0 Kudos
Message 1 of 4
(3,151 Views)
Solution
Accepted by topic author viScience
Not a bug, just an error.  the event needs to be generated on the dig display of the slider control for proper operation

"Should be" isn't "Is" -Jay
Message 2 of 4
(3,138 Views)

Yes you are right but it still might be considered a bug since I am not discarding the key down event so why would it affect the digital numeric?

Also, in a larger app were I first noticed the problem, it caused LV2009 to crash.

0 Kudos
Message 3 of 4
(3,118 Views)
I agree that the behavior is unexpected.    Looking a bit futher.  You attempted to regisiter a key down event on a slider- the slider does not get keyboard focus durring runtime (only some of its components can get keyboard focus.)  The fact that any event was generated at all and registered to the slider is questionable behavior.  The Event case should have thrown a warning that the event KeyDown? wasn't compatable with one or more referances.   Nevertheless, its important to remember the differance between a Gobject and a Gobject's properties Especially when one of the properties is another Gobject

"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(3,106 Views)