Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPControl TextColor problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControl TextColor problem

 Post Reply Post Reply
Author
Message
archies View Drop Down
Groupie
Groupie


Joined: 17 November 2009
Location: India
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote archies Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControl TextColor problem
    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

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: 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
Back to Top
archies View Drop Down
Groupie
Groupie


Joined: 17 November 2009
Location: India
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote archies Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
archies View Drop Down
Groupie
Groupie


Joined: 17 November 2009
Location: India
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote archies Quote  Post ReplyReply Direct Link To This Post 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.
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.203 seconds.