LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Controls Inside Tab Control from Pane Reference

Hi All,

 

I am working on a project where I want to disable certain controls in my Main VI front panel. I've attached the Sub VI that I am using to do this. In my main front panel I have a tab control that has other controls inside it that I also want to be able to enable and disable using this Sub VI. I've noticed that my current method of only using the Pane reference cannot access those controls inside the tab control. Is there something relatively simple that I can implement into my current SubVI to do this? Or do I need to rethink my design.

 

Regards,

 

Tristan

0 Kudos
Message 1 of 2
(828 Views)

There is a hierarchy to ownership of controls.  The pane owns the tab control, and the tab control owns the controls that are on it; but the pane doesn't own (directly) the controls that are on the tab control.  The attached VI traverses the pane for all controls.

 

Also your coding style is quite poor.  Learn to code properly and neatly.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 2
(786 Views)