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

TabControl color question

 Post Reply Post Reply
Author
Message
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Topic: TabControl color question
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2006 at 12:50am
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
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2006 at 3:06pm
Aha yes, that worked thanks alot  
Back to Top
Majek View Drop Down
Groupie
Groupie


Joined: 20 November 2006
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote Majek Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2006 at 3:16pm
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
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.158 seconds.