CXTPControl TextColor problem |
Post Reply |
Author | |
archies
Groupie Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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)
|
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)
|
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 |