Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Changing Edit and Combo-box text color using skin
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing Edit and Combo-box text color using skin

 Post Reply Post Reply
Author
Message Reverse Sort Order
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 Topic: Changing Edit and Combo-box text color using skin
    Posted: 07 May 2007 at 8:20am
Hello,
Please write to support@codejock.com I will send you all changes - I can't reproduce it, may be it was another change that fixed it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
niksom78 View Drop Down
Newbie
Newbie


Joined: 16 April 2007
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote niksom78 Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2007 at 2:36am
Hi,

after doing the changes suggested by you i could see the proper text color in edit and combo box drop down.
But problem still exist for standard print dialog. I have uploaded the png files for the print dialog.
uploads/20070507_023358_Printer_Dialog_.zip

-Nikhil
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: 04 May 2007 at 3:16pm

Hi,

hm you right :(  for edit and list used standard font - not themed.
 
Please patch XTPSkinObjectFrame.cpp:
 
for 2 "if (nMessage == WM_CTLCOLORLISTBOX || nMessage == WM_CTLCOLOREDIT)" blocks add
 
   ::SetTextColor((HDC)wParam, GetColor(COLOR_WINDOWTEXT));
 
and recompile library, Now add in ini file:
 
WindowText = 255 255 255
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
niksom78 View Drop Down
Newbie
Newbie


Joined: 16 April 2007
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote niksom78 Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2007 at 10:38am
Hi Support,

I have purchased Toolkit pro version (order #60398).
I have created a custom skin based on vista skin.
The skin works perfects ok, but i have a problem in changing the text color or fill color from edit ctrol or combo box control as shown in the attached zip file.
uploads/20070504_103221_How_to_Skin.zip

I have tried to change the [edit] and [combobox] sections of ini file, but nothing works.
Can you tell me how can i change the text color or background color in these two controls?

-Nikhil
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.109 seconds.