<?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 : [QUESTION] StatusBar and multiple Commandbars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : [QUESTION] StatusBar and multiple Commandbars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 02:38:04 +0000</pubDate>
  <lastBuildDate>Fri, 29 Jul 2011 10:16:17 +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=18729</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[[QUESTION] StatusBar and multiple Commandbars : Hi,  Seems we can&amp;#039;t have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65599&amp;title=question-statusbar-and-multiple-commandbars#65599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 29 July 2011 at 10:16am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Seems we can't have it all... Would be nice though, if CodeJock would add such thing. I was fiddling around with SetParent API and I'm able to reposition the toolbar but that's all. You can't drag toolbar around and width is calculated from the pane where the toolbar originally was located <img src="http://forum.codejock.com/smileys/smiley18.gif" height="17" width="17" border="0" alt="Ouch" title="Ouch" />&nbsp;Now, I wouldn't mind if the toolbars weren't dragable but the width is a problem. Is there someone who has an idea or two? </DIV><DIV>&nbsp;</DIV><DIV>CodeJock support? Any ideas? Future implementations?</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 10:16:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65599&amp;title=question-statusbar-and-multiple-commandbars#65599</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars : u really have to use a separate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65597&amp;title=question-statusbar-and-multiple-commandbars#65597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 29 July 2011 at 9:24am<br /><br />u really have to use a separate commandbars for docking panes <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" /> there's no other way]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 09:24:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65597&amp;title=question-statusbar-and-multiple-commandbars#65597</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars : Aaron,I try an use CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65594&amp;title=question-statusbar-and-multiple-commandbars#65594</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 29 July 2011 at 8:52am<br /><br />Aaron,<br><br>I try an use CommandBars only on forms were I don't want the ToolBar on the Main form (MDI App) to have the options.<br><br>younicke's is what I meant from my code snippet, the only difference being it that you can use the WithEvents in my code to fire button clicks if you require that code in the StatusBar.<br><br>I looked into using one CommandBar and trying to place menus that where floating into containers like PictureBoxes, DockingPanes etc but this didn't work as the CommandBars.AttachToWindow attaches the CommandBar control, not the separate toolbar or menubar <img src="http://forum.codejock.com/smileys/smiley6.gif" border="0" alt="Unhappy" title="Unhappy" /><br>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 08:52:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65594&amp;title=question-statusbar-and-multiple-commandbars#65594</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars : Hi,  Thanks for both replies...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65589&amp;title=question-statusbar-and-multiple-commandbars#65589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 29 July 2011 at 8:19am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Thanks for both replies <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>I guess this isn't going to be solved in an easy way... </DIV><DIV>&nbsp;</DIV><DIV><strong>Alexander</strong>: Do you have Commandbars for every form? Do you happen to use DockingPanes as well? <FONT color=#0000ff><strong>Yes</strong></FONT>:How do you add toolbars to these panes? <strong><FONT color=#0000ff>NO</FONT>:Question for other&nbsp;users, how do you add toolbars to panes (</strong>Single Commandbar or same as me multiple Commandbars)<strong>?</strong>&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><strong>Allan</strong>: I guess this would be the easiest solution, it does work and&nbsp;easy to implement, just add ControlSelected event handler (for every used Commandbars)&nbsp;and copy/paste code <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 29 Jul 2011 08:19:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65589&amp;title=question-statusbar-and-multiple-commandbars#65589</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars :   in my case there are times...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65513&amp;title=question-statusbar-and-multiple-commandbars#65513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1038">younicke</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 27 July 2011 at 6:01am<br /><br />in my case there are times that i use commandbars on other forms... and the way that i do to show the hint on the statusbar of the main form is by using this commandbars event<br><br>supposing this is your commandbar on other form<br><br>Private Sub CBarsOtherForm_ControlSelected(ByVal Control As XtremeCommandBars.ICommandBarControl)<br>&nbsp;&nbsp;&nbsp; If Not Control Is Nothing Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'display hint here using the control.descriptiontext... <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmMain.CommandBars.StatusBar.Pane(1).Text = Control.DescriptionText<br>&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; frmMain.CommandBars.StatusBar.Pane(1).Text = "Ready..."<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br>]]>
   </description>
   <pubDate>Wed, 27 Jul 2011 06:01:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65513&amp;title=question-statusbar-and-multiple-commandbars#65513</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars :      Aaron,I believe you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65510&amp;title=question-statusbar-and-multiple-commandbars#65510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 27 July 2011 at 3:56am<br /><br />Aaron,<br><br>I believe you should be able to use many CommandBars and only one StatusBar. In my Projects I usually split out how I build up my GUI and create a reference to the StatusBar so I can get click events and what not from it. That way I can always then reference it.<br><br>Below is a small snippet of code form a project of mine that shows how you can create a StatusBar on a form, make it public and with events.<br><table width="99%"><tr><td><pre class="BBcode"><br>Public WithEvents <b>MyStatusBar </b>As XtremeCommandBars.StatusBar<br><br>Private Sub CreateStatusBar()<br>&nbsp;&nbsp;&nbsp; ' Set up the Statusbar Style<br>&nbsp;&nbsp;&nbsp; Dim Pane As StatusBarPane<br>&nbsp;&nbsp;&nbsp; Set StatusBar = CommandBars.StatusBar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StatusBar.Visible = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; StatusBar.RibbonDividerIndex = 2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(0)<br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(ID_INDICATOR_FORECASTCOUNT)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Button = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Text = vbNullString<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Width = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Visible = False<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(ID_INDICATOR_NONFORECASTCOUNT)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Text = vbNullString<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Width = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.Visible = False<br><br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(ID_INDICATOR_CAPS)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pane.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(ID_INDICATOR_NUM)<br>&nbsp;&nbsp;&nbsp; Set Pane = StatusBar.AddPane(ID_INDICATOR_SCRL)<br><br>&nbsp;&nbsp;&nbsp; Set <b>MyStatusBar </b>= StatusBar<br>End Sub<br></pre></td></tr></table><br><br>As for creating CommandBars then attaching them to PictureBoxes (or DockingPanes) I am not sure if that can be done as like you I have always used multiple instances of the CommandBars control to do just that. Would be nice if this could be done though.<br><br>]]>
   </description>
   <pubDate>Wed, 27 Jul 2011 03:56:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65510&amp;title=question-statusbar-and-multiple-commandbars#65510</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] StatusBar and multiple Commandbars : Hi,  Is there a way to have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65491&amp;title=question-statusbar-and-multiple-commandbars#65491</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 18729<br /><strong>Posted:</strong> 26 July 2011 at 1:43pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Is there a way to have multiple Commandbars and have only one Statusbar in mainform? </DIV><DIV>I have more than one Commandbars control on a form (same reason as with the DockingPanes with PictureBox &lt;&gt; Form issue I started in&nbsp;Controls forum) and I would like to show user some info about the buttons on the toolbars when hovered. </DIV><DIV>&nbsp;</DIV><DIV>If this can't be done, is there a way to create different toolbars and "attach" them to&nbsp;the proper PictureBox (or DockingPane) If this means that I have only Commandbars control so be it... Minor issue <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 26 Jul 2011 13:43:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18729&amp;PID=65491&amp;title=question-statusbar-and-multiple-commandbars#65491</guid>
  </item> 
 </channel>
</rss>