Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - how to change title colors?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to change title colors?

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


Joined: 20 September 2007
Location: Puerto Rico
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimcorp Quote  Post ReplyReply Direct Link To This Post Topic: how to change title colors?
    Posted: 01 October 2007 at 7:15pm
This code set a red color to the first item of the group
 
 
Set Group = wndTaskPanel.Groups.Add(1, "More used Reports")
Group.Items.Add ID_CEI, "Show Payroll", xtpTaskItemTypeLink, 1
Group.Items.Add ID_CEI, "Show Payroll by Employee", xtpTaskItemTypeLink, 2
Group.Items(1).TextColor = &HC0&  <<<red color to the first item
 
but how I set the color to the title of the group: "More used Reports"
I looked the help file, but was unable to find the instruction.
 
any help greatly appreciated!
 
ariel
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: 02 October 2007 at 1:11am
Hi,
 
See NormalGroupCaptionTextNormal property of TaskPanelColorSet class.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
aimcorp View Drop Down
Groupie
Groupie


Joined: 20 September 2007
Location: Puerto Rico
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimcorp Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2007 at 2:50pm
It is too much to ask for specific code using the above?
 
we still don't find the way!
 
Sorry, but thy that doesn' t know is like thy that doesn't see!
 

 

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: 03 October 2007 at 1:21am
 
wndTaskPanel.ColorSet.NormalGroupCaptionTextNormal = vbRed
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2008 at 6:50am
How to change the TaskPanel colors in v1200, I think something changed since this post?
 
-cpede
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2008 at 5:13am
Please help I need to customize the TaskBar using different colors, but I cannot find the ColorSet described?
 
-cpede
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: 11 June 2008 at 1:18am
Hi,
It was question in ActiveX section.
For MFC you need GetPaintManager()->GetGroupColors()
 
 
 m_wndTaskPanel.GetPaintManager()->GetGroupColors(FALSE)->clrClientLink = RGB(0, 0, 255);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2008 at 4:08am
But what about something as simple as:
 
pPaintManager->m_clrBackground
 
which seem to be protected?
 
-cpede
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: 11 June 2008 at 1:36pm
Hi,
For MFC I recommend oevrride PrintManager's class and its RefreshMetrics() and set colors/fonts in this method.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.141 seconds.