![]() |
prohibit second color in a ribbon theme status bar |
Post Reply ![]() |
Author | |
rienzi ![]() Groupie ![]() Joined: 20 August 2009 Status: Offline Points: 38 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
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 |