<?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 : Adding commands to the Ribbon Bar icons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Adding commands to the Ribbon Bar icons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 00:31:06 +0000</pubDate>
  <lastBuildDate>Fri, 01 Feb 2008 01:45:45 +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=9330</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[Adding commands to the Ribbon Bar icons : Code Looks right. Send whole form...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30723&amp;title=adding-commands-to-the-ribbon-bar-icons#30723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 01 February 2008 at 1:45am<br /><br />Code Looks right. Send whole form file here or to <a href="mailto:support@codejock.com" target="_blank">support@codejock.com</A><DIV>&nbsp;</DIV><DIV>Be sure you have only Combo boxes with this id. Check that ID_FONT_SIZE is not 0.</DIV>]]>
   </description>
   <pubDate>Fri, 01 Feb 2008 01:45:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30723&amp;title=adding-commands-to-the-ribbon-bar-icons#30723</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : I can see how the demo works but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30716&amp;title=adding-commands-to-the-ribbon-bar-icons#30716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3162">benniboi</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 31 January 2008 at 11:13pm<br /><br /><P>I can see how the demo works but my code is very similar to it and it does not:</P>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_FONT_SIZE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ActiveForm.TXTextControl1.FontSize = Control.Text<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_FONT_FACE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ActiveForm.TXTextControl1.FontName = Control.Text</DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_FONT_FACE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ComboFontFace As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ComboFontFace = Control<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboFontFace.Text = ActiveForm.TXTextControl1.FontName</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case ID_FONT_SIZE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim ComboFontSize As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ComboFontSize = Control<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ComboFontSize.Text = ActiveForm.TXTextControl1.FontSize</DIV><DIV>End sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Among the problems I get is a type mismatch on Set ComboFontFace = control and Set ComboFontSize = Control</DIV><DIV>&nbsp;</DIV><DIV>The combo boxes do not update as I go over selected text nor does the font change when I try and change the font name or size in the combo boxes.</DIV><DIV>&nbsp;</DIV><DIV>I'm really confused, I'd appreciate any help. Thanks.</DIV>]]>
   </description>
   <pubDate>Thu, 31 Jan 2008 23:13:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30716&amp;title=adding-commands-to-the-ribbon-bar-icons#30716</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Start new sample and insert this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30497&amp;title=adding-commands-to-the-ribbon-bar-icons#30497</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 25 January 2008 at 2:31am<br /><br /><P>Start new sample and insert this code. You will see how it works.</P><DIV>There is no predefined constants for resource.bas - you choose any you need and call them as you like.</DIV>]]>
   </description>
   <pubDate>Fri, 25 Jan 2008 02:31:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30497&amp;title=adding-commands-to-the-ribbon-bar-icons#30497</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Hi Oleg  I don&amp;#039;t think...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30492&amp;title=adding-commands-to-the-ribbon-bar-icons#30492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3162">benniboi</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 24 January 2008 at 5:01pm<br /><br />Hi Oleg<DIV>&nbsp;</DIV><DIV>I don't think you understand what I need. How do I refer to the existing combo boxes on the Ribbon bar such as the Font name and Font size?</DIV><DIV>&nbsp;</DIV><DIV>This is my scenario: I am making&nbsp;a customised word processor so when I go over a piece of text, how can I show the correct fontname in the combo box in the ribbon bar? Where can I find how to refer back to it? I cannot see this in any examples. Have you got any more samples that deal with the ribbon bar? The ones that are provided are very basic and the documentation does not really help in this case.</DIV><DIV>&nbsp;</DIV><DIV>Also, another main issue that I raised. Where can I find ALL the constants that are listed in the RESOURCE.BAS? Different samples have different actions and there are some that are missing entirely. Can you please provide me with the entire list.</DIV><DIV><BR>Thanks</DIV><DIV>Ben</DIV>]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 17:01:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30492&amp;title=adding-commands-to-the-ribbon-bar-icons#30492</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Hi,   Here simple sample. Create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30471&amp;title=adding-commands-to-the-ribbon-bar-icons#30471</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 24 January 2008 at 8:33am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Here simple sample. Create form, add CommandBars and RichTextBox and this code:</DIV><DIV>&nbsp;</DIV><DIV><BR>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 100:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Combo As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Combo = Control<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RichTextBox1.SelFontSize = Combo.Text<BR>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub</DIV><DIV>Private Sub CommandBars_Update(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; Select Case Control.Id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 100:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Combo As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Combo = Control<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Combo.Text = RichTextBox1.SelFontSize<BR>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub</DIV><DIV>Private Sub CommandBars_ResizeClient(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)<BR>&nbsp;&nbsp;&nbsp; RichTextBox1.Move Left, Top, Right - Left, Bottom - Top<BR>End Sub</DIV><DIV><BR>Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp; Dim Combo As CommandBarComboBox<BR>&nbsp;&nbsp;&nbsp; Set Combo = CommandBars.ActiveMenuBar.Controls.Add(xtpControlComboBox, 100, "Size")<BR>&nbsp;&nbsp;&nbsp; Combo.DropDownListStyle = True<BR>&nbsp;&nbsp;&nbsp; Combo.AddItem 10<BR>&nbsp;&nbsp;&nbsp; Combo.AddItem 20<BR>&nbsp;&nbsp;&nbsp; Combo.AddItem 30<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub<BR></DIV>]]>
   </description>
   <pubDate>Thu, 24 Jan 2008 08:33:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30471&amp;title=adding-commands-to-the-ribbon-bar-icons#30471</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Oh I just realised I posted this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30306&amp;title=adding-commands-to-the-ribbon-bar-icons#30306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3162">benniboi</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 19 January 2008 at 8:49pm<br /><br />Oh I just realised I posted this in the wrong forum, sorry.&nbsp; I am actually using VB6. Could you point me to the equivalent code in VB6 please? Thanks]]>
   </description>
   <pubDate>Sat, 19 Jan 2008 20:49:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30306&amp;title=adding-commands-to-the-ribbon-bar-icons#30306</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Hi,  from Samples\Ribbon\Rib...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30251&amp;title=adding-commands-to-the-ribbon-bar-icons#30251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 18 January 2008 at 2:13am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>from Samples\Ribbon\RibbonSample\RibbonSampleView.cpp file.</DIV>]]>
   </description>
   <pubDate>Fri, 18 Jan 2008 02:13:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30251&amp;title=adding-commands-to-the-ribbon-bar-icons#30251</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Hi Oleg, which sample are you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30244&amp;title=adding-commands-to-the-ribbon-bar-icons#30244</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3162">benniboi</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 17 January 2008 at 6:47pm<br /><br />Hi Oleg, which sample are you referring to? I can't see <DIV>&nbsp;</DIV><DIV>&nbsp;ON_UPDATE_COMMAND_UI(ID_FONT_SIZE, OnUpdateComboSize)<BR>&nbsp;ON_XTP_EXECUTE(ID_FONT_SIZE, OnEditSize)</DIV><DIV>&nbsp;</DIV><DIV>anywhere in the samples that I have</DIV>]]>
   </description>
   <pubDate>Thu, 17 Jan 2008 18:47:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30244&amp;title=adding-commands-to-the-ribbon-bar-icons#30244</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : Hi,  1. See MainFrame::LoadIcons()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30207&amp;title=adding-commands-to-the-ribbon-bar-icons#30207</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 17 January 2008 at 2:25am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>1. See MainFrame::LoadIcons() method in sample. It show how to load icons.</DIV><DIV>&nbsp;</DIV><DIV>2. In Sample check </DIV><DIV><BR>&nbsp;ON_UPDATE_COMMAND_UI(ID_FONT_SIZE, OnUpdateComboSize)<BR>&nbsp;ON_XTP_EXECUTE(ID_FONT_SIZE, OnEditSize)<BR>handlers</DIV><DIV>they show how to update size combo.</DIV>]]>
   </description>
   <pubDate>Thu, 17 Jan 2008 02:25:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30207&amp;title=adding-commands-to-the-ribbon-bar-icons#30207</guid>
  </item> 
  <item>
   <title><![CDATA[Adding commands to the Ribbon Bar icons : I am using the Ribbon Bar to replace...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30202&amp;title=adding-commands-to-the-ribbon-bar-icons#30202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3162">benniboi</a><br /><strong>Subject:</strong> 9330<br /><strong>Posted:</strong> 16 January 2008 at 7:54pm<br /><br /><P>I am using the Ribbon Bar to replace my standard menu but I am having some difficulty and in linking the Ribbon Bar icons to my existing procedures as well as adding new ones.</P><DIV>&nbsp;</DIV><DIV>Are there any examples of how and where to change these? Any help would be greatly appreciated.</DIV><DIV>&nbsp;</DIV><DIV>For example: How do I refer to the Fontlist dropdown box? If I have several fonts in my document (I am making a customised document editor/word processor) how can I show the correct font name on the Ribbon? The demo does not seeem to show this. I am also unsure how to refer to other items on the bar incl. font size etc...</DIV>]]>
   </description>
   <pubDate>Wed, 16 Jan 2008 19:54:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9330&amp;PID=30202&amp;title=adding-commands-to-the-ribbon-bar-icons#30202</guid>
  </item> 
 </channel>
</rss>