LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Make Tab Invisible or Inactive

Solved!
Go to solution

I'm developing in LabWindows/CVI 2013.

 

I have a tab control on a panel with 3 tabs.  The 3rd tab is "Future Features".

Presently I have the tab set to "Initially dimmed".

When the panel is displayed you can still see the tab and click on it and see all the controls on that tab.  (you can't operate them and that's good)

I'd rather have it not accessible at all.

 

Is there any way to make the tab invisible?

Or make it so when you click the tab, it doesn't switch to that tab?

 

I don't want the operator to see the "work in progress" on that tab.

 

Kirk

 

0 Kudos
Message 1 of 4
(4,706 Views)
Solution
Accepted by topic author kirkm

To hide a tab page you can use SetTabPageAttribute with attribute ATTR_VISIBLE. There is no built-in way to make a tab page visible but not selectable, but you can set a calback for the tab control and trap EVENT_ACTIVE_TAB_CHANGE to return to another page when the unwanted one is selected, but the operator will briefly see the "forbidden" one.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(4,699 Views)

Hi, see the discussion here with code how to solve it

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

Roberto, Wolfgang,

For now the SetTabPageAttribute(...) is working to hide the tab.

When I get some more time I'll dig into the example code and give it at try.

 

 

Thanks for your help with this

0 Kudos
Message 4 of 4
(4,674 Views)