Print Page | Close Window

how to change title colors?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=8258
Printed Date: 03 May 2024 at 3:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to change title colors?
Posted By: aimcorp
Subject: how to change title colors?
Date 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



Replies:
Posted By: Oleg
Date Posted: 02 October 2007 at 1:11am
Hi,
 
See NormalGroupCaptionTextNormal property of TaskPanelColorSet class.


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


Posted By: aimcorp
Date 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!
 

 



Posted By: Oleg
Date Posted: 03 October 2007 at 1:21am
 
wndTaskPanel.ColorSet.NormalGroupCaptionTextNormal = vbRed


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


Posted By: cpede
Date Posted: 06 June 2008 at 6:50am
How to change the TaskPanel colors in v1200, I think something changed since this post?
 
-cpede


Posted By: cpede
Date 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


Posted By: Oleg
Date 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


Posted By: cpede
Date Posted: 11 June 2008 at 4:08am
But what about something as simple as:
 
pPaintManager->m_clrBackground
 
which seem to be protected?
 
-cpede


Posted By: Oleg
Date 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



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