Showing results for 
Search instead for 
Did you mean: 

Blocking user interface buttons

How I can block buttons in user interface. I have to make an application that prevent all functions from other buttons when one button is turned on. So I have four buttons and only one can be active at a time. If any other button is pressed there should occur an error message. Is there any easy way to do this?
0 Kudos
Message 1 of 6
Easiest way to do this is to use radio buttons.
Alternatively, you can use the 'disabled' property of a button by using a property node.
0 Kudos
Message 2 of 6
Could you make a little example code for me?
0 Kudos
Message 3 of 6

You can use the property "Disabled" to enable/disable the buttons.
Wire one of the following values to the property to perform the following operations:

0 - enable the button, so that it can be pushed
1 - disable the button, so that it can not be pushed
2 - disable the button, so that it can not be pushed, additionally it is greyed out so that it's state is visible

DavidT: Usually radio buttons are used to select one of several options. I would not use them to active one process and deactivate the other buttons.

Hope this helps.


Edit: Example added

Message Edited by becktho on 05-20-2005 09:09 AM

Using LV8.0
Don't be afraid to rate a good answer... 😉
0 Kudos
Message 4 of 6
Thank you very much. Now I get it.
0 Kudos
Message 5 of 6
if you want to use the radio buttons - have look at the example "radio buttons control" shipped with LabVIEW

regards timo
0 Kudos
Message 6 of 6