07-12-2011 06:33 PM
I am analyzing an existing program. It has an indicator which is hidden. If I right-click on the terminal, I can "find" the indicator, which appears as a dotted outline within the tab control area, regardless of which tab page is selected. How can I find out which tab page it is on?
I don't currently have the hardware to run the program, so I am trying to find a property or something with this information.
07-12-2011 07:00 PM
Create a Property Node for the tab control. Select the Pages property. The output is an array of references to the pages. Loop through those references checking another property node Controls on Page[ ] for references to the controls on that page. If you know the label of the hidden control (and no duplicate labels exist on the page), you can use the Label.Text property to find the control. Once you have the reference, you can write to the Visible property to show the control. Something like this (you need to add termination conditions):
07-12-2011 07:18 PM
I'm sure I mentioned that I cannot run the VI.
07-12-2011 07:39 PM
Create a new VI that you can run and open a reference to the broken VI. Rest stays the same....
07-12-2011 08:12 PM - edited 07-12-2011 08:18 PM
07-12-2011 08:21 PM
It's not broken I just don't currently have the I/O hardware to run it.
07-12-2011 08:22 PM
Darin.K, sounds like you've sussed it. I will check that possibility tomorrow.
07-13-2011 01:03 AM - edited 07-13-2011 01:07 AM
Just to add to Darin's reply, since he didn't refer to it explicitly - it's certainly possible the control is under the tab control, but if it is hidden, the context menu for the terminal has another option called Show Control, which makes it visible.