Print Page | Close Window

prohibit second color in a ribbon theme status bar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15811
Printed Date: 01 May 2025 at 3:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: prohibit second color in a ribbon theme status bar
Posted By: rienzi
Subject: prohibit second color in a ribbon theme status bar
Date Posted: 09 December 2009 at 9:15pm

i set the theme of my CXTPStatusBar like this:

  XTPPaintManager()->SetTheme(xtpThemeRibbon);
 
i need the second color because somethings i wish that one of my status bars in my app frame have a different appearance from other status bars in the same frame. But sometimes i do not need the second color to paint a different colors on my status bars. Then I found that the second color can not disappear using the code below:
 
  m_wndStatusBar.SetRibbonDividerIndex(m_wndStatusBar.GetPaneCount());
 
the second color just stay on the last item of the status bar and it can not be wiped off.
Can anybody tell me how to let the second color be useless please? I still need the second color so I can not use xtpThemeOffice2007 theme instead.
 
 
I have found out a solution. I can add a indicator at the last position of the status bar with nothing in it and make it invisible, then the last indicator can be painted with the second color but users can not see it.
 
I'm wondering if there is an easier solution or not



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