<?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 : [SOLVED!] Change System Button at runtime?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [SOLVED!] Change System Button at runtime?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 12:52:38 +0000</pubDate>
  <lastBuildDate>Sun, 27 Dec 2009 23:10:39 +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=15922</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[[SOLVED!] Change System Button at runtime? : Okay. Since you said there was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55861&amp;title=solved-change-system-button-at-runtime#55861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 27 December 2009 at 11:10pm<br /><br />Okay. Since you said there was no guarantee for the first option I went ahead and tried the second one.<DIV>And guess what? It works great! It's nice to get some real support around here ever once and a while.</DIV><DIV>Well, I'm off to try that other option for combined command buttons.</DIV><DIV>&nbsp;</DIV><DIV>Thanks jpbro,&nbsp;I really appreciate it!</DIV>]]>
   </description>
   <pubDate>Sun, 27 Dec 2009 23:10:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55861&amp;title=solved-change-system-button-at-runtime#55861</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Change System Button at runtime? : Hey man long time no talk! But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55859&amp;title=solved-change-system-button-at-runtime#55859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 27 December 2009 at 9:12pm<br /><br />Hey man long time no talk!<DIV>But I greatly appreciate the response.</DIV><DIV>I'll try these options right now &amp; let you know if it works.</DIV>]]>
   </description>
   <pubDate>Sun, 27 Dec 2009 21:12:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55859&amp;title=solved-change-system-button-at-runtime#55859</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Change System Button at runtime? :   There are a couple of ways...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55855&amp;title=solved-change-system-button-at-runtime#55855</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 27 December 2009 at 1:37pm<br /><br />There are a couple of ways that you can do this. The easiest is:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp; Me.CommandBars1.Item(1).ControlSystemButton.Style = &nbsp; xtpButtonAutomatic&nbsp; ' Switch to "Orb" style<br><br>&nbsp;&nbsp; Me.CommandBars1.Item(1).ControlSystemButton.Style = xtpButtonCaption&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Switch to caption style<br></pre></td></tr></table><br><br>As it seems that the Ribbon is Item #1 in the commandbars control collection. However, I don't think that this is the safest way, as you can't guarantee that CJ will always maintain the Ribbon in that position.<br><br>IMHO, a better option would be to store a reference to the Ribbon control in a module level variable when you create it, such as:<br><br>In the General Declarations section:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private mo_Ribbon As XtremeCommandBars.RibbonBar<br></pre></td></tr></table><br><br><br>In the sub where you add the ribbon bar:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set mo_Ribbon = .AddRibbonBar("MyRibbon")<br></pre></td></tr></table><br><br>And then when you want to change the ribbon style:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp; mo_Rbn.ControlSystemButton.Style = xtpButtonAutomatic&nbsp;&nbsp; ' Switch to "Orb" style<br><br>&nbsp;&nbsp; mo_Rbn.ControlSystemButton.Style = xtpButtonCaption&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Switch to caption style<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Sun, 27 Dec 2009 13:37:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55855&amp;title=solved-change-system-button-at-runtime#55855</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Change System Button at runtime? : I assumed that but how would I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55849&amp;title=solved-change-system-button-at-runtime#55849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 26 December 2009 at 7:37am<br /><br />I assumed that but how would I call it? I normal use the "CommandBars.findcontrol (type, ID) but that just doesn't seem to work with the Ribbon system button.]]>
   </description>
   <pubDate>Sat, 26 Dec 2009 07:37:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55849&amp;title=solved-change-system-button-at-runtime#55849</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Change System Button at runtime? : hi,  you can use CommandBars_Update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55848&amp;title=solved-change-system-button-at-runtime#55848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2368">cmm2006</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 26 December 2009 at 7:34am<br /><br />hi, <DIV>you can use <strong>CommandBars_Update</strong> to do so</DIV><DIV>good luck</DIV>]]>
   </description>
   <pubDate>Sat, 26 Dec 2009 07:34:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55848&amp;title=solved-change-system-button-at-runtime#55848</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED!] Change System Button at runtime? : Hello Folks; here&amp;#039;s a quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55844&amp;title=solved-change-system-button-at-runtime#55844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 15922<br /><strong>Posted:</strong> 25 December 2009 at 11:00pm<br /><br />Hello Folks; here's a quick question for you: <DIV>&nbsp;</DIV><DIV>I know that you can change the ribbon theme in runtime, but can you change the system button style at runtime also?</DIV><DIV>You know, like change it from the "Orb" to the rectangular blue item.</DIV><DIV>Also, how could you do this from another sub other than commandbars_execute?<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Fri, 25 Dec 2009 23:00:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15922&amp;PID=55844&amp;title=solved-change-system-button-at-runtime#55844</guid>
  </item> 
 </channel>
</rss>