![]() |
CXTPControl TextColor problem |
Post Reply
|
| Author | |
archies
Groupie
Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPControl TextColor problemPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
archies
Groupie
Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
archies
Groupie
Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |