LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric Control Disable

Hi, I have a numeric control. I want to disable the option of having the user enter a number and hit enter. I only want them to be able to use the up and down arrows to change the control. Is this possible and how do i implement this? Thanks!
0 Kudos
Message 1 of 10
(4,261 Views)
Select a "flat box" from decorations->Flat box, resize/move it to exactly cover the Numeric control user entry field and paint it transparent . Group it the flat box & Numeric control
 
See attached example.
 
 
-Kumar.B
 
 
 
 
0 Kudos
Message 2 of 10
(4,253 Views)
See the following link here
 
 
-Kumar.B
0 Kudos
Message 3 of 10
(4,249 Views)
Or catch all key events, and disgard them.

Regards,

Wiebe.


0 Kudos
Message 4 of 10
(4,233 Views)
I like Kumar B's advice, but you should save it as a typedef.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 5 of 10
(4,224 Views)
Hai TWGomez,
 
But when i used ur control in my vi it is accepting input from the keyboard....
 
 
Thanks,
Mathan
Message 6 of 10
(4,218 Views)
You actually running the program or just put it on your front panel and clicked on it??? You can type on it if the program isn't running....you can't when it is running...
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 7 of 10
(4,215 Views)

Wait...I posted the wrong one 😛

 

EDIT: Actually I didn't post the wrong one...When you save this make sure you save it disk then place the control on the front panel....I added it the block diagram via drag/drop, but came in as a constant (which I converted to a control), and it didn't work right....So save it, then add the control to the front panel via the controls pallete.



Message Edited by TWGomez on 04-22-2008 07:15 AM
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 8 of 10
(4,214 Views)

or just put it on your front panel and clicked on it???

That worked....
 
Thanks,
Mathan
Message 9 of 10
(4,209 Views)

"TWGomez" <x@no.email> wrote in message
news:1208866206469-693657@exchange.ni.com...
> I like Kumar B's advice, but you should save it as a typedef.
>

Be careful though. Using this method, you can still tab to the control to
give it key focus. You might not want to disable tabbing for the control,
because tabbing is sometimes very convenient.

Regards,

Wiebe.


0 Kudos
Message 10 of 10
(4,173 Views)