Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Office2007 theme inconsistent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office2007 theme inconsistent

 Post Reply Post Reply
Author
Message
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Topic: Office2007 theme inconsistent
    Posted: 26 February 2008 at 4:19pm
in
 
void CXTPReportPaintManager::RefreshMetrics()
 
you can see that for m_nColumnStyle == xtpReportColumnOffice2007, it picks column header colours based on the current system colour (luna) setting.
 
No other controls do this (i.e. command bars, window frame etc).
 
I propose for consistency, that the code
 
   switch (XTPColorManager()->GetCurrentSystemTheme())
   {
    case xtpSystemThemeSilver:
    {
...
     }
   }
 
 
be replaced simply with the colour lookups using
 
XTPOffice2007Images()->GetImageColor(_T("Window"), _T("WindowFrame"))
 
otherwise we have small parts of a GUI of an app which change colour with the windows theme, and most doesn't (or is this the behaviour of the office apps themselves?)
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2008 at 5:54pm
or in front of that add
 
   if (XTPOffice2007Images()->IsValid())
   {
    m_grcGradientColumn.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarFaceLight")),
     XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarFaceDark")), 0.25f);
    m_grcGradientColumnPushed.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarFaceDark")),
     XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarFaceLight")), 0.25f);
    // shadow on the bottom of  the column headers.
    m_clrGradientColumnShadow.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ControlEditBorder"))); 
    // this is the column separator.
    m_clrGradientColumnSeparator.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarGripper")));
    // group box background should be same as workspace?
    m_clrGroupBoxBack.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Workspace"), _T("AppWorkspace")));
    m_crlNoGroupByText.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Window"), _T("CaptionTextActive")));
    m_clrGroupShadeBack.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("Toolbar"), _T("ToolbarFaceLight")));
    // hot is for a column header that is being dragged
    m_grcGradientColumnHot.SetStandardValue(m_grcGradientColumn);
    m_clrGroupRowText.SetStandardValue(XTPOffice2007Images()->GetImageColor(_T("ShortcutBar"), _T("NormalText")));
    m_clrGroupShadeBorder.SetStandardValue(m_clrGradientColumnSeparator);
   }
   else
   {
 
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: 27 February 2008 at 6:43am
Thanks, Adrien
 
Blue, Black and Silver themes added for Report for 12.0 release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2008 at 8:23am
actually what would be really cool, would be if
 
a) the hot gradient colour was used when hovering (like a CListCtrl), and
 
b) it was that cool orange gradient that's used on the Toolbar buttons (for the Office 2007 Black theme anyway)
 
Cheers
 
Adrien
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.137 seconds.