Print Page | Close Window

Changing Edit and Combo-box text color using skin

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=7043
Printed Date: 01 March 2025 at 11:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing Edit and Combo-box text color using skin
Posted By: niksom78
Subject: Changing Edit and Combo-box text color using skin
Date 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 - 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



Replies:
Posted By: Oleg
Date 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


Posted By: niksom78
Date 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 - uploads/20070507_023358_Printer_Dialog_.zip

-Nikhil


Posted By: Oleg
Date Posted: 07 May 2007 at 8:20am
Hello,
Please write to mailto:support@codejock.com - 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net