LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide a single tab ?

Hello all,
Is there a way to hide a single tab (and all its content) in a tab control ?
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 1 of 4
(3,895 Views)

I'm not sure about the latest CVI Tab operation, but back in the days when they were implemented with the EasyTab instrument, there was a function EasyTab_RemovePanel() to do this. Have you tried setting ATTR_VISIBLE to 0?

 

JR

0 Kudos
Message 2 of 4
(3,887 Views)

there is a SetTabPageAttribute() function, which allows to set an attribute for a single tab in a tab control. the ATTR_VISIBLE attribute is defined for tab page.

so hiding a tab goes like:

 

SetTabPageAttribute( panel, TAB_CONTROL, 1, ATTR_VISIBLE, 0 );

 

where the third parameter is the zero-based index of the tab you want to hide in the tab control.

0 Kudos
Message 3 of 4
(3,883 Views)
> there is a SetTabPageAttribute() function

I was sure there was something like that, but I couldn't find it.
Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/


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