<?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 : Yet another bug: Ribbon, SetCurSel</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Yet another bug: Ribbon, SetCurSel]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 03:06:30 +0000</pubDate>
  <lastBuildDate>Fri, 04 Aug 2006 10:15:59 +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=4730</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[Yet another bug: Ribbon, SetCurSel : I agree... For 10.3.1 Update will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14685&amp;title=yet-another-bug-ribbon-setcursel#14685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4730<br /><strong>Posted:</strong> 04 August 2006 at 10:15am<br /><br />I agree... For 10.3.1 Update will call anyway but GetCurSel will return correct index.]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 10:15:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14685&amp;title=yet-another-bug-ribbon-setcursel#14685</guid>
  </item> 
  <item>
   <title><![CDATA[Yet another bug: Ribbon, SetCurSel :   oleg wrote: This is not good...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14680&amp;title=yet-another-bug-ribbon-setcursel#14680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4730<br /><strong>Posted:</strong> 04 August 2006 at 9:32am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><DIV>This is not good idea to&nbsp;select tab each time&nbsp;in update handler - user will not be able to switch tabs. I'd change it to</td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>Sure, the sample was just to reproduct the problem.</DIV><DIV><strong>I</strong> test my apps before releasing them <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />&nbsp;</DIV><DIV>&nbsp;pTab = pControl-&gt;FindTab(ID_TAB_CHARTFORMAT);</DIV><DIV>&nbsp;BOOL bOldVisible = pTab-&gt;IsVisible();<BR>&nbsp;pTab-&gt;SetVisible(bVisible);</DIV><DIV>&nbsp;if (bVisible &amp;&amp; !bOldVisible)<BR>&nbsp;{<BR>&nbsp;&nbsp;pTab-&gt;Select();<BR>&nbsp;}<BR>&nbsp;<BR>it will activate it only once when it first become visible and resolve stack overflow problem</DIV></td></tr></table><DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV>That workaround works, but it's not perfect. If I call SetCurSel in the update handler the update handler is beeing called again but GetCurSel still returns the old index and not the one I've set before.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 09:32:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14680&amp;title=yet-another-bug-ribbon-setcursel#14680</guid>
  </item> 
  <item>
   <title><![CDATA[Yet another bug: Ribbon, SetCurSel : Hi,  This is not good idea toselect...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14674&amp;title=yet-another-bug-ribbon-setcursel#14674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4730<br /><strong>Posted:</strong> 04 August 2006 at 8:59am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>This is not good idea to&nbsp;select tab each time&nbsp;in update handler - user will not be able to switch tabs. I'd change it to </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;pTab = pControl-&gt;FindTab(ID_TAB_CHARTFORMAT);</DIV><DIV>&nbsp;BOOL bOldVisible = pTab-&gt;IsVisible();<BR>&nbsp;pTab-&gt;SetVisible(bVisible);</DIV><DIV>&nbsp;if (bVisible &amp;&amp; !bOldVisible)<BR>&nbsp;{<BR>&nbsp;&nbsp;pTab-&gt;Select();<BR>&nbsp;}<BR>&nbsp;<BR>it will activate it only once when it first become visible and resolve stack overflow problem</DIV>]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 08:59:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14674&amp;title=yet-another-bug-ribbon-setcursel#14674</guid>
  </item> 
  <item>
   <title><![CDATA[Yet another bug: Ribbon, SetCurSel : The problem is in CXTPRibbonBar::RebuildControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14673&amp;title=yet-another-bug-ribbon-setcursel#14673</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4730<br /><strong>Posted:</strong> 04 August 2006 at 8:56am<br /><br />The problem is in <strong>CXTPRibbonBar::RebuildControls</strong> where now <strong>OnIdleUpdateCmdUI</strong> is beeing called.<DIV>&nbsp;</DIV><DIV>Is there any reason why OnIdleUpdateCmdUI is beeing called explicitly?</DIV>]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 08:56:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14673&amp;title=yet-another-bug-ribbon-setcursel#14673</guid>
  </item> 
  <item>
   <title><![CDATA[Yet another bug: Ribbon, SetCurSel : In the RibbonSample add the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14657&amp;title=yet-another-bug-ribbon-setcursel#14657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4730<br /><strong>Posted:</strong> 03 August 2006 at 4:59pm<br /><br />In the RibbonSample add the following lines to <EM>CRibbonSampleView::OnUpdateRibbonTab</EM> at the end of the method<EM>:<DIV>&nbsp;</DIV><DIV>...</DIV><DIV>&nbsp;</DIV><DIV>pTab = pControl-&gt;FindTab(ID_TAB_CHARTFORMAT);<BR>pTab-&gt;SetVisible(bVisible);</EM></DIV><DIV>&nbsp;</DIV><DIV><strong>if (bVisible)<BR>{<BR>&nbsp;&nbsp; pTab-&gt;GetRibbonBar()-&gt;SetCurSel(7);<BR>}</strong></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Then start the app and click on Insert &gt; Chart.... </DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20060803_165503_stack_overflow.png" border="0"></DIV><DIV>&nbsp;</DIV><DIV>That makes it impossible to automatically select the first visible contextual tab like in Office 2007.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I've the same problem in my app and it worked with 10.20</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 03 Aug 2006 16:59:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4730&amp;PID=14657&amp;title=yet-another-bug-ribbon-setcursel#14657</guid>
  </item> 
 </channel>
</rss>