Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Tabcontrol colors
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tabcontrol colors

 Post Reply Post Reply
Author
Message
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post Topic: Tabcontrol colors
    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!

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2005 at 9:02am
You can turn off OneNoteColors to get rid of random colors.  Note, AutoTheme will need to be FALSE and you will have to set the Appearance to PropertyPage2003 and the Color to Office2003 (Assuming you want Office 2003 style tabs).  THen you can choose custom colors.


Edited by SuperMario
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
TobiasWeltner View Drop Down
Newbie
Newbie


Joined: 12 January 2005
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote TobiasWeltner Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.