Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - custom colors in cjstyles
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

custom colors in cjstyles

 Post Reply Post Reply
Author
Message
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Topic: custom colors in cjstyles
    Posted: 03 August 2006 at 10:46am
Hi,
 
I am creating a cjstyles skin for my application.
To do that, I just copy the code of the Office2007 style from the XTP sources.
 
All works but some controls does not have the color I would.
 
For example, I would like to change the background and text color for the ComboBox, Edit and ListView (as in the OpenWindow).
 
I can change the colors of almost all the controls but not these ones.
 
In the .ini file, I use these lines for each control I would like to change the colors:
 
; Globals for the entire control
bgType = borderFill
fillType = Solid
fillColor = 91 91 91
BorderColor = 91 91 91
TextColor = 255 250 207
BorderSize = 1
 
But it does not work. the background is still with and the text is still black (but in the OpenFile Window, the text is white and the background too).
 
I get the same problem for the background of the scrollbars: the background is black and I don't see why....
 
Any idea?
 
Thank you.
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: 03 August 2006 at 11:53am
Hi,
 
You can only change global window color:
 
[SysMetrics]
Window =  91 91 91
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2006 at 5:03am
Thank you Oleg, I will play with that and the text 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.156 seconds.