<?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 : EnableOffice2007Frame Not Working</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : EnableOffice2007Frame Not Working]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 20:20:50 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jan 2012 09:19:26 +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=17843</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[EnableOffice2007Frame Not Working : CommandBars.EnableOffice2007Frame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=67484&amp;title=enableoffice2007frame-not-working#67484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 23 January 2012 at 9:19am<br /><br /><div style="text-align: left; : rgb248, 248, 252; "><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CommandBars.EnableOffice2007Frame True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path &amp; "\..\..\..\Styles\Office2010.dll", "Office2010Blue.ini"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CommandBars.VisualTheme = xtpThemeRibbon</div></div><div style="text-align: left; : rgb248, 248, 252; "><br></div><div style="text-align: left; : rgb248, 248, 252; ">What do you mean you have no controls? &nbsp;You use the designer so you see no controls in&nbsp;CommandBars.DesignerControls?</div><div style="text-align: left; : rgb248, 248, 252; "><br></div><div style="text-align: left; : rgb248, 248, 252; "><img src="http://forum.codejock.com/uploads/369/1-13-2012_11-29-59_AM.png" height="487" width="660" border="0" /></div>]]>
   </description>
   <pubDate>Mon, 23 Jan 2012 09:19:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=67484&amp;title=enableoffice2007frame-not-working#67484</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working :   hino answer for my question?Sorry...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=67478&amp;title=enableoffice2007frame-not-working#67478</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1827">free_user</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 22 January 2012 at 6:45am<br /><br />hi<div>no answer for my question?</div><div>Sorry for my pure English.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Sun, 22 Jan 2012 06:45:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=67478&amp;title=enableoffice2007frame-not-working#67478</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Hi  i am using Ribbonbar with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=66805&amp;title=enableoffice2007frame-not-working#66805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1827">free_user</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 12 November 2011 at 2:39am<br /><br /><p>Hi</p><p>i am using Ribbonbar with design with commandbar designer.</p><p>           axCommandBars1.DesignerControls.DeleteAll();<br>            axCommandBars1.LoadDesignerBars("d:\\Shop_Ribbon.xcb", "Ribbon_Shop");<br>            axCommandBars1.EnableOffice2007Frame(true);</p><p>how can i use "EnableFrameTheme" with code.</p><p>Sorry for my bad english.</p>]]>
   </description>
   <pubDate>Sat, 12 Nov 2011 02:39:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=66805&amp;title=enableoffice2007frame-not-working#66805</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Fair enough, but I would make...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62469&amp;title=enableoffice2007frame-not-working#62469</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2490">GarethThom</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 09 February 2011 at 4:06am<br /><br />Fair enough, but I would make two observations:<div><ol><li>It should probably not turn the title bar black (in what appears to be a failed attempt to apply the theme making it look like a bug) when the call to EnableOffice2007Frame is made before any command bars are added</li><li>There should also be some kind of documentation stating that this is not designed to work in Vista/W7 when the Aero theme is in use. Current documentation on the&nbsp;EnableOffice2007Frame&nbsp;Method&nbsp;states only the following:</li></ol><ul><ul><li>Specifies that the Office 2007 style frame will be used</li><li>EnableOffice2007Frame is useful when the Office 2007 visual theme is applied so the entire application is Office 2007 themed</li></ul></ul>Thanks for&nbsp;everyone's&nbsp;help,</div><div>G.</div>]]>
   </description>
   <pubDate>Wed, 09 Feb 2011 04:06:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62469&amp;title=enableoffice2007frame-not-working#62469</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Hi,Yes, its designed behavior...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62466&amp;title=enableoffice2007frame-not-working#62466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 09 February 2011 at 1:49am<br /><br />Hi,<div><br></div><div>Yes, its designed behavior of&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">EnableOffice2007Frame. Office products look same in Vista/Windows7.</span></div>]]>
   </description>
   <pubDate>Wed, 09 Feb 2011 01:49:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62466&amp;title=enableoffice2007frame-not-working#62466</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Windows Vista &amp;amp; 7 Aero overrides...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62454&amp;title=enableoffice2007frame-not-working#62454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 08 February 2011 at 11:29am<br /><br />Windows Vista &amp; 7 Aero overrides the CommandBars theme. The only way I know to overcome this is to disable desktop composition (Aero) when your program starts, but unfortunately this is a system-wide setting, so it will likely bother your users more than if you leave the Aero theme alone.<br><br>If you still want to do this, here's some code (untested by me) that claims to accomplish this:<br><a href="http://www.vbforums.com/showpost.php?p=3296097&amp;postcount=7" target="_blank">http://www.vbforums.com/showpost.php?p=3296097&amp;postcount=7</a>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 11:29:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62454&amp;title=enableoffice2007frame-not-working#62454</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Thanks for getting back to me,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62453&amp;title=enableoffice2007frame-not-working#62453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2490">GarethThom</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 08 February 2011 at 11:04am<br /><br />Thanks for getting back to me, but I appear not to have described the problem properly.<div><br></div><div>If we take the standard SDI Sample then this is what it looks like on Windows Server 2008 with "Office 2007 Frame" unticked:</div><div><br></div><div><img src="uploads/2490/Codejock_Frame_Problem_3.png" height="176" width="639" border="0" /><br></div><div><br></div><div>and this is what it looks like ticked:</div><div><br></div><div><img src="uploads/2490/Codejock_Frame_Problem_2.png" height="176" width="639" border="0" /><br></div><div><br></div><div>Notice the Office 2007 style title bar as expected/desired.</div><div><br></div><div>Running the exact same .exe on Vista produces this with "Office 2007 Frame" ticked:</div><div><br></div><div><img src="uploads/2490/Codejock_Frame_Problem_4.png" height="183" width="594" border="0" /><br></div><div><br></div><div>And looks identical with the "Office 2007 Frame" unticked, i.e. regardless of whether&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">EnableOffice2007Frame is on or off, the title bar is not themed as per Office 2007 (shown above).</span></div><div><br></div><div>This appears to be the same when applied to the ribbon (regardless of calling&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">RibbonBar.EnableFrameTheme or not)</span>.</div><div><br></div><div>Can someone please look at this again and clarify how to make this work?</div><div><br></div><div>Thanks again,</div><div>G.</div>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 11:04:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62453&amp;title=enableoffice2007frame-not-working#62453</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : As your investigation suggested...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62449&amp;title=enableoffice2007frame-not-working#62449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 08 February 2011 at 9:22am<br /><br />As your investigation<font face="Verdana, Arial, Helvetica, sans-serif"> </font><font face="Times New Roman, Times, serif"><font face="Verdana, Arial, Helvetica, sans-serif">suggested</font> </font>and as per Supermario's suggestion you must always call:<font face="'Courier New', Courier, mono"> "CommandBars.EnableOffice2007Frame True"<font face="Verdana, Arial, Helvetica, sans-serif"> after you have created your RibbonBar.<br><br>It's not a bug that needs fixed, people just need to be aware that there is a method to creating the RibbonBar, which you now know.</font><br></font>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 09:22:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62449&amp;title=enableoffice2007frame-not-working#62449</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : Just call RibbonBar.EnableFrameTheme...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62447&amp;title=enableoffice2007frame-not-working#62447</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 08 February 2011 at 8:59am<br /><br />Just call RibbonBar.EnableFrameTheme after you create ribbon, statusbar, etc...]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 08:59:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62447&amp;title=enableoffice2007frame-not-working#62447</guid>
  </item> 
  <item>
   <title><![CDATA[EnableOffice2007Frame Not Working : The Environment:Xtreme SuitePro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62446&amp;title=enableoffice2007frame-not-working#62446</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2490">GarethThom</a><br /><strong>Subject:</strong> 17843<br /><strong>Posted:</strong> 08 February 2011 at 7:55am<br /><br /><span ="Apple-tab-span" style="white-space:pre"><div><b>The <span ="Apple-tab-span" style="white-space:pre">E</span>nvironment:</b></div></span>Xtreme SuitePro ActiveX 2009 Vol 4 (13.4.2)<div>VB6 SP6</div><div>Reproducible&nbsp;on Vista &amp; W7 (both 32 bit), in IDE and at Runtime</div><div><br></div><div><b>The Problem:</b></div><div>The title bar displays in black and removes the min, max and close buttons at the top right of the form as shown here in the Codejock Ribbon MDI Sample (slightly modified - see below):</div><div><img src="uploads/2490/Codejock_Frame_Problem.png" height="83" width="364" border="0" /><br></div><div><br></div><div><b>The Investigation:</b></div><div>I have finally managed to track down the above display problem to calling the following line of code before any command bars / ribbon is added:</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>CommandBars.EnableOffice2007Frame True</font></div><div><br></div><div>This can easily be replicated if you take the standard Codejock Ribbon MDI Sample VB6 application and insert the above line before "LoadIcons" in MDIForm_Load() as follows:</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>Private Sub MDIForm_Load()</font></div><div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>&nbsp;&nbsp; &nbsp;CommandBars.EnableOffice2007Frame True</font></div></div><div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>&nbsp;&nbsp; &nbsp;LoadIcons</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>&nbsp;&nbsp; &nbsp;CreateRibbonBar</font></div></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>&nbsp;&nbsp; &nbsp;...</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>&nbsp;&nbsp; &nbsp;...</font></div><div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><span ="Apple-tab-span" style="white-space:pre">	</span>End Sub</font></div></div><div><br></div><div>It would appear that if you place the call to&nbsp;EnableOffice2007Frame after the ribbon is created you do not get the office theme applied. This is demonstrated using the standard&nbsp;Codejock SDI Sample whereby ticking and unticking the "Office 2007 Frame" check box appears to do absolutely nothing.</div><div><br></div><div>I will be upgrading to v15 when (if?) it comes out tomorrow so if it is fixed in that release I personally will not be to bothered if it is fixed in v13.4.2 or not. As it stands, however, unless someone can suggest a workaround it looks as if I will have to disable the 2007 frame before the next release.</div><div><br></div><div>Thanks in advance,</div><div>Gareth</div>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 07:55:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17843&amp;PID=62446&amp;title=enableoffice2007frame-not-working#62446</guid>
  </item> 
 </channel>
</rss>