![]() |
Using ribbon color schemes with docking panes etc |
Post Reply
|
| Author | |
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Topic: Using ribbon color schemes with docking panes etcPosted: 04 February 2007 at 11:20am |
|
When using a ribbon, following the RibbonSample example it is easy to have the general appearance use one of the blue/black/silver/aqua color schemes. In addition, any toolbars/menu bars/status bars that are present automatically take on the required colors.
However, neither CXTPDockingPaneManager nor CXTPTabClientWnd items seem to adjust color. How is it possible to do this?
Also, how can I determine the colors being used from within the application so that I can change app-specific elements to match? The GetXtremeColor(xxx) function does not seem to return different values even when the different color schemes are in operation.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2007 at 1:36am |
|
Hi,
Set xtpPaneThemeOffice2007 theme for dockingpanes.
Check Samples\DockingPane\PaneSample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2007 at 6:02am |
|
Hi Oleg,
The xtpPaneThemeOffice2007 theme is fine for the blue ribbon color, but does not update when the black/aqua/silver color schemes are used. I tested by inserting the following into a version of the RibbonMDISample that I'd incorporated the ribbon colour style code from RibbonSample:
m_paneManager.InstallDockingPanes(this);
m_paneManager.SetTheme(xtpPaneThemeOffice2007); m_paneManager.UseSplitterTracker(FALSE); m_paneManager.CreatePane( IDS_PANEWINDOW,
CRect(0, 0,150, 120), xtpPaneDockLeft );
In the blue color, all is fine, but in black neither the docking panes nor the tab client use the same color scheme as the ribbon.
![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2007 at 11:25am |
|
Call
m_paneManager.GetPaintManager()->RefreshMetrics()
after you change color.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
robin_l
Senior Member
Joined: 15 October 2006 Status: Offline Points: 117 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 February 2007 at 6:51pm |
|
Excellent! This sets the docking pane color correctly. To set the tab client wnd I also needed to add the line:
This sets the color of the tab background correctly, but as the default is to use the OneNote color scheme it still looks odd. However, ensuring that the following is set:
gives exactly what I need. Many thanks for your help! |
|
![]() |
|
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 |