<?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 : Ribbnbar selection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Ribbnbar selection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 15:46:11 +0000</pubDate>
  <lastBuildDate>Sun, 15 Apr 2007 11:06:32 +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=6853</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[Ribbnbar selection : Okay, I used RibbonBar.SelectedTab...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21970&amp;title=ribbnbar-selection#21970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 6853<br /><strong>Posted:</strong> 15 April 2007 at 11:06am<br /><br />Okay,<DIV>I used RibbonBar.SelectedTab with the select statment to find out wich tab was selected, but everytime I select tab with the index 1, the application crashed and VB6 is closed. I dont't know if I am doing something wrong or it's something else.</DIV><DIV>My code:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Dim RibbonBar As RibbonBar</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>Select Case Control.Id<BR>Case XTPCommandBarsSpecialCommands.XTP_ID_RIBBONCONTROLTAB:<BR>&nbsp;&nbsp;&nbsp; Select Case RibbonBar.SelectedTab.Index<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Report1.Visible = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar1.Visible = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Calendar1.Visible = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Report1.Visible = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 2: MsgBox "Other"<BR>&nbsp;&nbsp;&nbsp; End Select<BR>Case 1000: End<BR>Case 201: Calendar1.ViewType = xtpCalendarWorkWeekView<BR>Case 200: Calendar1.ViewType = xtpCalendarDayView<BR>Case 202: Calendar1.ViewType = xtpCalendarWeekView<BR>Case 203: Calendar1.ViewType = xtpCalendarMonthView<BR>End Select<BR>End Sub</DIV>]]>
   </description>
   <pubDate>Sun, 15 Apr 2007 11:06:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21970&amp;title=ribbnbar-selection#21970</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbnbar selection : Hi,  yes, this code help to find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21945&amp;title=ribbnbar-selection#21945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6853<br /><strong>Posted:</strong> 14 April 2007 at 1:38am<br /><br />Hi, <DIV>yes, this code help to find event when selected tab was changed.&nbsp; to find selected tab use something like:</DIV><DIV>&nbsp;</DIV><DIV>if (RibbonBar.Tab(1).Selected) then</DIV><DIV>&nbsp;</DIV><DIV>or</DIV><DIV>&nbsp;</DIV><DIV>RibbonBar.SelectedTab</DIV>]]>
   </description>
   <pubDate>Sat, 14 Apr 2007 01:38:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21945&amp;title=ribbnbar-selection#21945</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbnbar selection : hello, I tried your code, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21929&amp;title=ribbnbar-selection#21929</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 6853<br /><strong>Posted:</strong> 13 April 2007 at 3:06pm<br /><br />hello,<DIV>I tried your code, but it seems that all the ribbon tabs have the same id "9604", and that is not helping me at all.</DIV><DIV>so how can I be able to make the difference between the tabs?</DIV><DIV>thank you,</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 13 Apr 2007 15:06:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21929&amp;title=ribbnbar-selection#21929</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbnbar selection : Hi,  In your Execute event add:  Private...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21904&amp;title=ribbnbar-selection#21904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6853<br /><strong>Posted:</strong> 13 April 2007 at 12:40am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>In your Execute event add:</DIV><DIV>&nbsp;</DIV><DIV><BR>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case XTPCommandBarsSpecialCommands.XTP_ID_RIBBONCONTROLTAB:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "Selected Tab is Changed"<BR></DIV>]]>
   </description>
   <pubDate>Fri, 13 Apr 2007 00:40:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21904&amp;title=ribbnbar-selection#21904</guid>
  </item> 
  <item>
   <title><![CDATA[Ribbnbar selection : hello, How can I be able to detect...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21896&amp;title=ribbnbar-selection#21896</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 6853<br /><strong>Posted:</strong> 12 April 2007 at 7:34pm<br /><br />hello,<DIV>How can I be able to detect wich ribbon tab was selected?</DIV><DIV>thank you,<img src="https://forum.codejock.com/smileys/smiley19.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 19:34:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6853&amp;PID=21896&amp;title=ribbnbar-selection#21896</guid>
  </item> 
 </channel>
</rss>