Print Page | Close Window

Tabcontrol colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1705
Printed Date: 22 September 2024 at 2:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabcontrol colors
Posted By: TobiasWeltner
Subject: Tabcontrol colors
Date Posted: 26 January 2005 at 8:46am

When I use TabControl with Office 2003 appearance, everything is great except for one thing: tabs are assigned a somewhat randomly chosen color. This looks great but is there a way to set the color manually? I'd like to set specific colors for some tabs. Is that possible? Am I overlooking something? Thanx!




Replies:
Posted By: SuperMario
Date Posted: 26 January 2005 at 9:02am
You can turn off http://www.codejock.com/products/commandbars/activex/cb_tabs_onenotecolors.asp - OneNoteColors to get rid of random colors.  Note, http://www.codejock.com/products/commandbars/activex/cb_tabs_autotheme.asp - AutoTheme will need to be FALSE and you will have to set the http://www.codejock.com/products/commandbars/activex/cb_tabs_appearance.asp - Appearance to PropertyPage2003 and the http://www.codejock.com/products/commandbars/activex/cb_tabs_color.asp - Color to Office2003 (Assuming you want Office 2003 style tabs).  THen you can choose http://www.codejock.com/products/commandbars/activex/cb_tab_xtptabcontrolitem_color.asp - custom colors .


Posted By: TobiasWeltner
Date Posted: 26 January 2005 at 10:03am
Thanks! Last question for today (promise ): How can I programmatically select a given tab? I tried to assign a tabitem to the selected-property but that did not work...


Posted By: SuperMario
Date Posted: 26 January 2005 at 10:06am
something like:

If not CommandBars.TabWorkspace.Item(3) is nothing then
    CommandBars.TabWorkspace.Item(3).Selected = True
end if


Posted By: TobiasWeltner
Date Posted: 26 January 2005 at 10:23am
Thanks! The more I dive into this, the more I must say: a superb control collection, fast and reliable. Cool...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net