Print Page | Close Window

CXTPControl TextColor problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15709
Printed Date: 24 June 2025 at 8:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControl TextColor problem
Posted By: archies
Subject: CXTPControl TextColor problem
Date Posted: 25 November 2009 at 6:52am
Hi Oleg;

How can i change the TextColor of any control.

i.e.

i create a CXTPControl of type "xtpControlPopup" , which has Caption "Result" . Now i want "Result" should display in Red and in bold characters.


didn't found solution in sample or help.

thnx




Replies:
Posted By: Oleg
Date Posted: 26 November 2009 at 1:51am
Hi,

To Make it bold you can call pControl->SetItemDefault(TRUE);
 
To Mark it Red you need create new CXTPPaintManager class, override its GetControlTextColor method  and set this paintmanage to your commandbars.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: archies
Date Posted: 26 November 2009 at 5:43am
Hi oleg ;
thnx for ur reply , but if i apply the paintmanager class to the commandBar , then all the controls on the command bar marked as Red.
I need to make only few controls to specific color, not all.

please help me doin so.


Posted By: archies
Date Posted: 03 March 2010 at 1:57am
Hi oleg ;
thnx for ur reply , but if i apply the paintmanager class to the commandBar , then all the controls on the command bar marked as Red.
I need to make only few controls to specific color, not all.

please help me doin so.



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