<?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 : Keybindings and two CommandBars?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Keybindings and two CommandBars?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 11:39:58 +0000</pubDate>
  <lastBuildDate>Sat, 14 Feb 2004 22:29:48 +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=444</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[Keybindings and two CommandBars? :  In case anyone was wondering,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1023&amp;title=keybindings-and-two-commandbars#1023</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 10:29pm<br /><br />In case anyone was wondering, In my first response I spoke about usingonly one CommandBars control for all of your toolbars and active menucontrols.&nbsp; To do this, make sure you add all toolbars and activemenu controls .&nbsp; <br><br>Say you have File, Edit, View, Window, Help in your active menu bar.&nbsp; To hide the "Edit" control use:<br>&nbsp;&nbsp;&nbsp;&nbsp; CommandBars(1).Controls(2).Visible = False<br><br>Say you also have two toolbars, to hide the second toolbar, which isthe third command bar (active menubar plus two toolbars) use:<br>&nbsp;&nbsp;&nbsp; CommandBars(3).Visible = False<br><br>So you can see it would be easy to hide and unhide controls , menus,and toolbars whenever you like.&nbsp; Read the previous post as well,that may help in using a floating toolbar.&nbsp; I have not seenanything that will allow you to control&nbsp; the position of thecommand bar.&nbsp; Anyone know how to position the floating toolbar?<br><br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 22:29:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1023&amp;title=keybindings-and-two-commandbars#1023</guid>
  </item> 
  <item>
   <title><![CDATA[Keybindings and two CommandBars? : If you want to create a floating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1022&amp;title=keybindings-and-two-commandbars#1022</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 5:17pm<br /><br />If you want to create a floating toolbar, you can use just oneCommandBars control on your form.&nbsp; When you add the toolbar setthe type as xtpBarFloating.&nbsp; For example:<br><br>Set ToolBar = CommandBars.Add("Standard", xtpBarFloating")<br><br>To keep users from docking the toolbar you need to use the xtpFlagFloating:<br><br>ToolBar.EnableDocking xtpFlagFloating<br><br>I am not sure if you can set the position of this toolbar.&nbsp; butthe keybindings work.&nbsp; When I tried to place the control in apicture box I couldn't even get the buttons to respond.&nbsp; I wonderif you added the controls to the CommandBars control on the main formand then hide the control giving them the same ID as the ones in thepicture box, then add keybinding to those hidden controls.&nbsp; Thismight work.<br><br><br><br>]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 17:17:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1022&amp;title=keybindings-and-two-commandbars#1022</guid>
  </item> 
  <item>
   <title><![CDATA[Keybindings and two CommandBars? : The reason for having two Commandbars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1021&amp;title=keybindings-and-two-commandbars#1021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=290">Bjarne</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 3:53pm<br /><br /><P>The reason for having two Commandbars is that I have a Form with a RTF Control on it, and at the top of that RTF Edit control I have a CommandBar with Cut, Copy, Paste, Bold etc attached.</P><P>&nbsp;The reason for doing it this way is that I need to control exactly where the Toolbar is placed, (It has to be at the top of the RTF Edit window)&nbsp;and I could not figure out any other way than putting a CommandBar in a Picture Box and control exact placement of that Picture Box.</P><P>The obvious choice would be to create a floating toolbar and control placement of that, but with the current samples included and the content of the Help file, I could not figure out how to do that. So if anyone has an example of that I would appreciate it.</P><P>But as Boyd pointed out, there seems to be a problem anyway, which I hope Codejock can look into.</P><P>Bjarne</P>]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 15:53:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1021&amp;title=keybindings-and-two-commandbars#1021</guid>
  </item> 
  <item>
   <title><![CDATA[Keybindings and two CommandBars? : I have experienced a similar problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1020&amp;title=keybindings-and-two-commandbars#1020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 3:44pm<br /><br />I have experienced a similar problem with the key bindings.&nbsp; I have a CommandBars control on my main form.&nbsp; I also have CommandBars in various panes docked to the main form.&nbsp; The key bindings only seem to work for the main CommandBar.]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 15:44:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1020&amp;title=keybindings-and-two-commandbars#1020</guid>
  </item> 
  <item>
   <title><![CDATA[Keybindings and two CommandBars? : I am not sure if this is possible....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1019&amp;title=keybindings-and-two-commandbars#1019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 3:10pm<br /><br />I am not sure if this is possible.&nbsp; If I am understanding youcorrectly, you have two CommandBars controls added to the form.&nbsp;What you could do is have only one CommandBars control on yourform.&nbsp; Then add all of your command bars to the CommandBarscontrol.&nbsp; In the SDI sampls they use only one CommandBars controland they have both the standard toolbar and themes toolbar added tothis control.&nbsp; Doing it this way you can add as many toolbars asyou like.&nbsp; If there are times you want to see only certaintoolbars you could just hide them when they are not wanted.&nbsp; Ifyou are trying to have different acvtive menu bars then you would addall of the controls needed to the active menu bar and hide them whenyou don't want to see them.&nbsp; I haven't tried the hiding of activemenu controls yet so I am not sure it is possible.&nbsp; You wouldprobably have to give the controls in the active menu bar an Id so youcould find them.]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 15:10:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1019&amp;title=keybindings-and-two-commandbars#1019</guid>
  </item> 
  <item>
   <title><![CDATA[Keybindings and two CommandBars? : I have two CommandBars placed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1018&amp;title=keybindings-and-two-commandbars#1018</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=290">Bjarne</a><br /><strong>Subject:</strong> 444<br /><strong>Posted:</strong> 14 February 2004 at 9:18am<br /><br /><P>I have two CommandBars placed on one form. I have added keybindings for different keys on the two Bars. But only the keybindings added for the first Commandbar work. Is this expected behaviour or a bug?</P><P>Regards,</P><P>Bjarne</P>]]>
   </description>
   <pubDate>Sat, 14 Feb 2004 09:18:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=444&amp;PID=1018&amp;title=keybindings-and-two-commandbars#1018</guid>
  </item> 
 </channel>
</rss>