<?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 : RibbonBar System Button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : RibbonBar System Button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 17:20:27 +0000</pubDate>
  <lastBuildDate>Wed, 10 Jan 2007 01:28:53 +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=6051</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[RibbonBar System Button : Hi,  Write to support http://www.codejock.com/support/...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19093&amp;title=ribbonbar-system-button#19093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6051<br /><strong>Posted:</strong> 10 January 2007 at 1:28am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Write to support</DIV><DIV><a href="http://www.codejock.com/support/" target="_blank">http://www.codejock.com/support/</A></DIV>]]>
   </description>
   <pubDate>Wed, 10 Jan 2007 01:28:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19093&amp;title=ribbonbar-system-button#19093</guid>
  </item> 
  <item>
   <title><![CDATA[RibbonBar System Button : I have used the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19083&amp;title=ribbonbar-system-button#19083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1677">davidsimmonds</a><br /><strong>Subject:</strong> 6051<br /><strong>Posted:</strong> 09 January 2007 at 5:28pm<br /><br />I have used the following code to create the RibbonBar:<DIV>&nbsp;</DIV><FONT size=2><P><FONT face="Courier New, Courier, mono">CMyRibbonBar* pRibbonBar = (CMyRibbonBar*)pCommandBars-&gt;Add(_T(</FONT></FONT><FONT face="Courier New, Courier, mono" color=#a31515 size=2>"The Ribbon"</FONT><FONT size=2><FONT face="Courier New, Courier, mono">), xtpBarTop, RUNTIME_CLASS(CMyRibbonBar));</P><DIV></FONT></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=2>if</FONT><FONT size=2><FONT face="Courier New, Courier, mono"> (!pRibbonBar)</DIV><DIV></FONT></FONT><FONT face="Courier New, Courier, mono" color=#0000ff size=2>return</FONT><FONT size=2><FONT face="Courier New, Courier, mono"> FALSE;</FONT></DIV><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;EnableDocking(0);</FONT></P><P><FONT face="Courier New, Courier, mono">CMenu mnuMain; mnuMain.LoadMenu(IDR_MAINFRAME_EX);</FONT></P><P><FONT face="Courier New, Courier, mono">CXTPControlPopup* pControlFile = (CXTPControlPopup*)pRibbonBar-&gt;AddSystemButton(ID_MENU_FILE);</FONT></P><P><FONT face="Courier New, Courier, mono">pControlFile-&gt;SetCommandBar(mnuMain.GetSubMenu(0));</FONT></P></FONT><FONT color=#008000 size=2><P><P><FONT face="Courier New, Courier, mono"></FONT></P></FONT><FONT size=2><FONT face="Courier New, Courier, mono">pControlFile-&gt;SetIconId(IDB_MAINFRAME);</FONT></P><P><FONT face="Courier New, Courier, mono">UINT uCommand = {IDB_MAINFRAME};</FONT></P><P><FONT face="Courier New, Courier, mono">pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_MAINFRAME, &amp;uCommand, 1, xtpImageNormal);</FONT></P><P><FONT face="Courier New, Courier, mono">pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_MAINFRAME, &amp;uCommand, 1, xtpImageHot);</FONT></P><P><FONT face="Courier New, Courier, mono">pCommandBars-&gt;GetImageManager()-&gt;SetIcons(IDB_MAINFRAME, &amp;uCommand, 1, xtpImagePressed);</FONT></P><P><FONT face="Courier New, Courier, mono"></FONT></P><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;GetQuickAccessControls()-&gt;Add(xtpControlButton, ID_FILE_RUNINBACKGROUND);</FONT></P><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;GetQuickAccessControls()-&gt;Add(xtpControlButton, ID_EDIT_PREFERENCES);</FONT></P><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;GetQuickAccessControls()-&gt;CreateOriginalControls();</FONT></P><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;SetCloseable(FALSE);</FONT></P><P><FONT face="Courier New, Courier, mono">pRibbonBar-&gt;EnableFrameTheme();</FONT></P><DIV><FONT face="Courier New, Courier, mono"></FONT></DIV><P><a href="https://forum.codejock.com/uploads/20070109_172405_mainframe.zip" target="_blank">uploads/20070109_172405_mainframe.zip</A></P><DIV></DIV><DIV></DIV>This is the image that I am using.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Also, the images in the QuickAccess are too small. They are 16x16 bitmaps, but they dont appear correct. Here is a screen shot:</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/20070109_172758_untitled2.zip" target="_blank">uploads/20070109_172758_untitled2.zip</A></DIV><DIV>&nbsp;</DIV><DIV>What do I need to do to fix this?</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 17:28:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19083&amp;title=ribbonbar-system-button#19083</guid>
  </item> 
  <item>
   <title><![CDATA[RibbonBar System Button : What exactly is needed to be authored...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19071&amp;title=ribbonbar-system-button#19071</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1677">davidsimmonds</a><br /><strong>Subject:</strong> 6051<br /><strong>Posted:</strong> 09 January 2007 at 1:34pm<br /><br />What exactly is needed to be authored for bitmaps and icons for the System Button fora RibbonBar? I see the example, but it uses a PNG file. I assume a bitmap can be used instead? What are the requirements?<a href="https://forum.codejock.com/uploads/20070109_133315_untitled.zip" target="_blank">uploads/20070109_133315_untitled.zip</A><DIV>&nbsp;</DIV><DIV>The zip file contains a screen shot of what my System Button looks like. I have obviously done something incorrect.</DIV>]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 13:34:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6051&amp;PID=19071&amp;title=ribbonbar-system-button#19071</guid>
  </item> 
 </channel>
</rss>