LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically showing/hiding a bunch of controls & decorations

Is there any easy way to take a number of controls & decorations and
simultaneously hide or view them? The best I've been able to come up with is
to place the controls & decorations in a completely separate VI and then use
the "subpanel" control, programmatically inserting the correct one.

This is actually what I consider to be a "group box" -- in Visual BASIC or
C++, you can dump a bunch of objects into one and they subsequently move with
the group box and changes to the group box's properties (such as "visible" and
"disable") affect all the controls inside as well.

My goal here is to take a section of a panel and replace the controls & text
(decorations) that are visible based on a radio box select elsewhere on the
panel.

Thanks,
---Joel Kolstad


0 Kudos
Message 1 of 4
(4,170 Views)

Hi:

You can group your componets using a cluster and use property nodes to make them visible/invisible. I've attached a VI that shows how to do this. Hope this helps. Robst.

 



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 2 of 4
(4,151 Views)
"Robst" <x@no.email> wrote in message
news:1139514072295-322868@exchange.ni.com...
> You can group your componets using a cluster and use property nodes to make
> them visible/invisible. I've attached a VI that shows how to do this. Hope
> this helps. Robst.

Thanks, that works pretty well! I'd like a transparent border on the cluster,
but I figure I can just customize the control to achieve that result.

Come to think of it, perhaps I'll just use a customized tab control... seems
as though it could work too.

Thanks for the help!

---Joel


0 Kudos
Message 3 of 4
(4,136 Views)

I came on your post needing a similar feature: showing/hiding a bunch of controls and indicators.  The cluster of controls would work as referenced by the previous poster.  Just make note that if you group the items into a cluster of controls, you cannot have indicators in there.  A cluster can be filled of controls or indicators, not both.  What worked for me was placing the controls/indicators within a tab, and using the tab's Visible property.

 

Stephen McClanahan

0 Kudos
Message 4 of 4
(3,734 Views)