Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Tab control like in FireFox Collapse All
Subject Author Date
Offer Har Oct 26, 2008 - 7:20 AM

Hi,


I would like the tab control to not appear unless I have more then one tab, like it’s done in FireFox. Is this possible?


Another option we consider is to implement the ’New Tab’ option in IE7/8 - is this possible?


Thanks,


Ron.

Technical Support Oct 27, 2008 - 2:15 PM

The CExtTabWnd::OnTabWndSyncVisibility() virtual method is invoked to show or hide the tab control when needed. You should hide your tab control if it contains only one tab item. You should invoke the parent class’s method otherwise. The new tab option is very easy to do. You should simply insert one additional tab item to the end and catch its selection in the CExtTabWnd::OnTabWndSelectionChange() method. Besides, if you are interested in IE7-like looking tab control, then please take a look at the following project:

http://www.prof-uis.com//download/forums/TestIE7Tabs.zip