![]() |
Tabcontrol colors |
Post Reply
|
| Author | |
TobiasWeltner
Newbie
Joined: 12 January 2005 Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: Tabcontrol colorsPosted: 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! |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
TobiasWeltner
Newbie
Joined: 12 January 2005 Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
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...
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
TobiasWeltner
Newbie
Joined: 12 January 2005 Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
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...
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |