<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Ribbon bar selection problem.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Ribbon bar selection problem.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 04:19:25 +0000</pubDate>
  <lastBuildDate>Wed, 11 Jan 2017 17:05:34 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=23242</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Ribbon bar selection problem. : I&amp;#039;ve got a problem I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23242&amp;PID=75480&amp;title=ribbon-bar-selection-problem#75480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9116">jasondmichaelson</a><br /><strong>Subject:</strong> 23242<br /><strong>Posted:</strong> 11 January 2017 at 5:05pm<br /><br /><div>I've got a problem I'm trying to solve with a ribbon bar that contains a few tabs along with a System Button representing the File Menu which contains a backstage view. We've customized the colors in our theme, so that unselected tabs appear with a blue background. The problem I'm experiencing is that since the selected versus unselected tabs have different background colors, when I open up the backstage view under the file menu,&nbsp;CXTPRibbonTabColorSet::SetTextColor() appears to be treating the selected tab as unselected from this code:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (bSelected &amp;&amp; pRibbonBar-&gt;IsBackstageViewVisible())</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>bSelected = FALSE;</div></div><div><br></div><div>and my previously selected ribbon bar tab is being treated as unselected, and I'm getting white text on a white background for that tab.</div><div><br></div><div>Is there a better way to add the backstage view to the ribbon bar than with this:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPControlPopup* pControlFile = (CXTPControlPopup*)m_pRibbonBar-&gt;AddSystemButton(ID_RBN_FILE);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPRibbonBackstageView* pView = CXTPRibbonBackstageView::CreateBackstageView(GetCommandBars());</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPRibbonControlSystemButton* pButton = m_pRibbonBar-&gt;GetSystemButton();</div><div><br></div><div><span ="Apple-tab-span" style="white-space: pre;">	</span>if( !m_filePageInfo.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePageInfo.Create(CFilePageInfo::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( !m_filePageOpen.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePageOpen.Create(CFilePageOpen::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( !m_filePageOptions.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePageOptions.Create(CFilePageOptions::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( !m_filePageActions.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePageActions.Create(CFilePageActions::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( !m_filePagePrint.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePagePrint.Create(CFilePagePrint::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if( !m_filePageSave.GetSafeHwnd() ) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>m_filePageSave.Create(CFilePageSave::IDD, this);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPRibbonBackstageTab* pTabDefault = AddBackstageTab(*pView, m_filePageInfo, ID_MENU_INFO, dTabFlags);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddBackstageTab(*pView, m_filePageOpen, ID_MENU_OPEN, dTabFlags);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddBackstageTab(*pView, m_filePageSave, ID_MENU_SAVE, dTabFlags);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddBackstageTab(*pView, m_filePagePrint, ID_MENU_PRINT, dTabFlags);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddBackstageTab(*pView, m_filePageOptions, ID_MENU_OPTIONS, dTabFlags);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>AddBackstageTab(*pView, m_filePageActions, ID_MENU_ACTIONS, dTabFlags);</div><div><br></div></div><div><br></div><div>or is there similar code missing in the render path for the tab button background to treat that as unselected if the backstage view is visible?</div>]]>
   </description>
   <pubDate>Wed, 11 Jan 2017 17:05:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23242&amp;PID=75480&amp;title=ribbon-bar-selection-problem#75480</guid>
  </item> 
 </channel>
</rss>