TabControl color question |
Post Reply |
Author | |
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 20 November 2006 at 2:31pm |
Hi, i'm trying to design a "themed" program that allows the user to customize the fonts/colors/etc of the forms. I used the Office XP theme on the CommandBars and it allowed me to set the special colors of the menu to make it fully customizable. The only thing that doesn't match is the TabControl, I tried .PaintManager.Color = XTPTabColorStyle.xtpTabColorOffice2003 but it doesn't have a SetSpecialColor function. I saw a few things in the XtremeSuiteControls namespace but I couldn't figure out how to use them. So in short, is it possible to set user defined custom colors on a TabControl? I'm using version 10.1.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
yes, you can customize colors.
TabControl.PaintManager.ColorSet.ControlFace = ...
but not sure if it was available in 10.1 :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Aha yes, that worked thanks alot
|
|
Majek
Groupie Joined: 20 November 2006 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
This was my code for anyone else who might have the same question (VB 2005)
With TabControl
.InsertItem(0, "Connection", frmConnection.Handle.ToInt32, 0) .InsertItem(1, "Chat", frmChat.Handle.ToInt32, 0) .InsertItem(2, "Transfer", frmTransfer.Handle.ToInt32, 0) .InsertItem(3, "Settings", frmSettings.Handle.ToInt32, 0)
.DrawFocusRect = False
End With
With TabControl.PaintManager
.Appearance = XTPTabAppearanceStyle.xtpTabAppearancePropertyPage2003
.BoldSelected = True .Color = XTPTabColorStyle.xtpTabColorOffice2003
.Layout = XTPTabLayoutStyle.xtpTabLayoutSizeToFit .Position = XTPTabPosition.xtpTabPositionTop .ColorSet.ControlFace = Convert.ToUInt32(ColorTranslator.ToWin32(Color.Red)) End With |
|
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 |