LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric Control: Only allow increment/ decrement arrows?

Solved!
Go to solution

Hey all,

I'd like to disable to the ability to type-in numeric entries on my numeric control. Instead, I want to force the user to utilize the increment/ decrement arrows and manually adjust their desired setpoint up/ down from my default value. I'm sure this is a simple solution but can't seem to figure it out. Thanks!

0 Kudos
Message 1 of 5
(2,579 Views)

You could put a "Key Down?" filter event in an event case, and always reject it.

0 Kudos
Message 2 of 5
(2,571 Views)
Solution
Accepted by topic author PFour

Hi PFour,

 

1. Place a (transparent) decoration over the numeric value. Now the user cannot click the value of the numeric control, only the arrows are selectable. (This only works when the user doesn't use the keyboard with tabbing to reach that numeric value.)

 

2. Place only two boolean buttons, customized with up/down arrows. Use their value change events to change your setpoint and display the setpoint in an indicator next to your buttons. (This use case is mainly intended for touch screens where you need bigger arrow buttons anyway.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 5
(2,562 Views)

Thanks GerdW -- gotta say, I'm a bit surprised that there isn't an actual setting to add further control on how the value can be edited. Oh well, I think the first solution should work well for me. Thanks! 

0 Kudos
Message 4 of 5
(2,545 Views)

@GerdW wrote:

Hi PFour,

 

1. Place a (transparent) decoration over the numeric value. Now the user cannot click the value of the numeric control, only the arrows are selectable. (This only works when the user doesn't use the keyboard with tabbing to reach that numeric value.)

 

 


You can skip tabbing to the numeric control from the control's key navigation property page.

0 Kudos
Message 5 of 5
(2,524 Views)