LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

disable entire group of controls at once

Is there anyway to disable a group of controls that are grouped together on the front panel at once?  I know how to disable each one individually, but I have a lot in a group that I would like to all disable together.
0 Kudos
Message 1 of 9
(3,492 Views)
Hi rakornet,
you can cluster all your elements and hide the entire cluster, or you search for all references and go through a loop to hide them seperatly.
Mike
Message 2 of 9
(3,488 Views)

.... or put them all in a single page tab control that is transparent and just disable the tab control.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 9
(3,482 Views)
That's a clever idea, Ben. And, it wouldn't impact existing code like putting the controls into a cluster. I never thought of that. I like it!
0 Kudos
Message 4 of 9
(3,452 Views)


Ben wrote:

.... or put them all in a single page tab control that is transparent and just disable the tab control.

Ben




Oooh, now that's a good idea!  I'll have to remember that one.
Jon D
Certified LabVIEW Developer.
0 Kudos
Message 5 of 9
(3,446 Views)
Ben,
That sounds like a great idea, but I can't color my tab control.  What am I doing wrong?  LV8.0.
Jim

LV 2020
0 Kudos
Message 6 of 9
(3,435 Views)

Are you using the classic style tab control?

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 9
(3,430 Views)
Well I guess so!  Thanks.
Jim

LV 2020
0 Kudos
Message 8 of 9
(3,427 Views)
The tab control method works (I've used it myself more than once), but does have some disadvantages. As mentioned, another option is to go over the references in a loop. Here's an example which shows moving this off to a subVI. This has the advantage of making complex UI code relatively easy to handle.

___________________
Try to take over the world!
0 Kudos
Message 9 of 9
(3,411 Views)