Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - tab control - customize color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

tab control - customize color

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


Joined: 07 December 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote armc Quote  Post ReplyReply Direct Link To This Post Topic: tab control - customize color
    Posted: 07 December 2009 at 1:46am
Hi,

How can I customize the color of the CJ tab control?  I'm trying to mimic the appearance of the original tab controls that we are using for our applications.  However, I can't set the custom color that we are using on the CJ tab control, it is only accepting some predefined values.

Thanks.



VB6 SP6
Windows XP Professional vr 2002 SP2 32-bit
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: 07 December 2009 at 7:31am
Hi,
 
Use ColorSet properties:
 
For example
 
TabControl1.PaintManager.ColorSet.ButtonNormal = vbRed
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
armc View Drop Down
Newbie
Newbie


Joined: 07 December 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote armc Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2009 at 11:16pm
Hi Oleg,

Thanks for the help; I was able to set the tab control's back color to our custom color.

I had to set several of the TabControl's ColorSet properties to get it working properly.

    'Tab Control
    TabControl1.PaintManager.ColorSet.ButtonNormal =
Color
    TabControl1.PaintManager.ColorSet.ButtonSelected = Color
    TabControl1.PaintManager.ColorSet.ControlFace = Color
    TabControl1.PaintManager.ColorSet.HeaderFaceDark = Color
    TabControl1.PaintManager.ColorSet.HeaderFaceLight = Color


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.141 seconds.