From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only one page visible on a tab control

Solved!
Go to solution

Hello,

 

I'm using a tabcontrol and i want to show only one page of this Tab. At the launch of the vi, i just want to have Page1 visible but with the the default values the Page2 is grayed but visible. I have to select Page1 in order to make disappear the Page2.

 

In the next step (menu ring "Show only"), the behavior is the same.

 

I don't understand my mistake.

 

Thanks for your help.

Djamel

0 Kudos
Message 1 of 3
(815 Views)
Solution
Accepted by topic author Djamel_LFC

I'd reverse the order of page visible and page enabled.

 

Then be sure to programmatically set the tab control to the page.

 

See Attached which is also greatly simplified.

 

I'd put that in a subVI so you can call it once at beginning of the program with a reference to the tab control to set it to page 1.

Then use an event structure for the selector's value change to call the subVI again to change to the new page.

 

 

0 Kudos
Message 2 of 3
(805 Views)

Hello,

 

Sorry to be late and thanks for your answer.

 

Your solution works fine !

 

Djamel

0 Kudos
Message 3 of 3
(740 Views)