<?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 : RESOLVED: Positioning Help!! (Screenshot added)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : RESOLVED: Positioning Help!! (Screenshot added)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 19:37:02 +0000</pubDate>
  <lastBuildDate>Tue, 08 Jul 2008 13:04:00 +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=11331</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[RESOLVED: Positioning Help!! (Screenshot added) : The lines that said ReplyBar.EnableDocking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37994&amp;title=resolved-positioning-help-screenshot-added#37994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 1:04pm<br /><br />The lines that said <br><br><font face="Verdana, Arial, Helvetica, sans-serif" size="1">ReplyBar.EnableDocking xtpFlagHideWrap Or xtpFlagHideWrap<br><br></font>Were actually caught and fixed since I posted the code. I changed them to your reccomendation, and it works perfectly. Thanks again.<br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 13:04:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37994&amp;title=resolved-positioning-help-screenshot-added#37994</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) : Rewind a moment.Your latest code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37993&amp;title=resolved-positioning-help-screenshot-added#37993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 1:01pm<br /><br />Rewind a moment.<br><br>Your latest code shows:<br><font size="1" face="Verdana, Arial, Helvetica, sans-serif">ReplyBar.EnableDocking xtpFlagHideWrap Or xtpFlagHideWrap</font><br>and<br><font size="1" face="Verdana, Arial, Helvetica, sans-serif">ReplyBar2.EnableDocking xtpFlagHideWrap Or xtpFlagHideWrap</font><br><br>this should be<br><br><font color="#006600">ReplyBar.EnableDocking <b>xtpFlagStretchedShared </b>Or xtpFlagHideWrap<br>ReplyBar2.EnableDocking <b>xtpFlagStretchedShared </b>Or xtpFlagHideWrap</font><br><br>I pasted your original code into new form, added CommandsBars to form, added Picturebox and added Commandbars2 to picturebox. My suggestion then did exactly what you're looking for.<br><br>Can you try again like I did above? I'll redo and post sample if required.<br><br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 13:01:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37993&amp;title=resolved-positioning-help-screenshot-added#37993</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) : You are the MAN!  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37992&amp;title=resolved-positioning-help-screenshot-added#37992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 12:57pm<br /><br />You are the MAN!]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 12:57:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37992&amp;title=resolved-positioning-help-screenshot-added#37992</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) : I found this hack that seems to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37991&amp;title=resolved-positioning-help-screenshot-added#37991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 12:53pm<br /><br />I found this hack that seems to work...Add it after your current last ReplyBar.Controls.Add call.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; ReplyBar.Controls.Add(xtpControlLabel, 12, "").Width = 2500&nbsp;&nbsp;  ' Arbitrary large number to force the next toolbar to be docked to right edge of form<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 12:53:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37991&amp;title=resolved-positioning-help-screenshot-added#37991</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) :  I see that this will offset...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37989&amp;title=resolved-positioning-help-screenshot-added#37989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 12:48pm<br /><br />I see that this will offset the toolbar by 1000, however I am trying to get the width of the parent frame, and the width of replybar2, and use those measurements to place it all the way to the right. Using your method would not work if the form/frame was resized.<br><br>also, the offset doesnt even work... weird...<br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 12:48:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37989&amp;title=resolved-positioning-help-screenshot-added#37989</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) : try  instead CommandBars2.DockToolBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37984&amp;title=resolved-positioning-help-screenshot-added#37984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 12:39pm<br /><br />try<DIV>&nbsp;</DIV><DIV>instead</DIV><DIV><FONT size=1>CommandBars2.DockToolBar BarToDock, Right, (Bottom + Top) / 2, BarOnLeft.Position</FONT><BR></DIV><DIV><FONT size=1>CommandBars2.DockToolBar BarToDock, Right <strong>+ 1000</strong>, (Bottom + Top) / 2, BarOnLeft.Position</FONT><BR></DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 12:39:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37984&amp;title=resolved-positioning-help-screenshot-added#37984</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) :   This yields the same result...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37967&amp;title=resolved-positioning-help-screenshot-added#37967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 08 July 2008 at 8:47am<br /><br />This yields the same result - the second bar is still docking to the immediate right of the first... Any other Ideas?<br><br><br><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Sub InitializeCommandBar()<br><br>&nbsp;&nbsp;&nbsp; CommandBars.DeleteAll<br>&nbsp;&nbsp;&nbsp; CommandBars2.DeleteAll<br><br>&nbsp;&nbsp;&nbsp; Dim ToolBar As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim ReplyBar As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim ReplyBar2 As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim C As CommandBarButton<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ToolBar.Customizable = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 1, "New")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 2, "Print")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 3, "Forward")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 4, "Chat")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 5, "Rotate")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 6, "Skin")<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ToolBar.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; ToolBar.EnableDocking xtpFlagHideWrap<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Set ReplyBar = CommandBars2.Add("Reply", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ReplyBar.Customizable = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 7, "Send")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 8, "Send Later")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 9, "Send All")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlSplitButtonPopup, 10, "Acknowledge")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 11, "CC")<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ReplyBar.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; ReplyBar.EnableDocking xtpFlagHideWrap Or xtpFlagHideWrap<br><br><br>&nbsp;&nbsp;&nbsp; Set ReplyBar2 = CommandBars2.Add("Reply2", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ReplyBar2.Customizable = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar2.Controls.Add(xtpControlButton, 12, "Re-Send")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar2.Controls.Add(xtpControlButton, 13, "Trash")<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ReplyBar2.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; ReplyBar2.EnableDocking xtpFlagHideWrap Or xtpFlagHideWrap<br><br><br>&nbsp;&nbsp;&nbsp; Dim Items()<br>&nbsp;&nbsp;&nbsp; Items = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)<br>&nbsp;&nbsp;&nbsp; ImageManager.Icons.LoadBitmap App.Path &amp; "\Icons\highclr.bmp", Items, xtpImageNormal<br>&nbsp;&nbsp;&nbsp; CommandBars.Icons = ImageManager.Icons<br>&nbsp;&nbsp;&nbsp; CommandBars2.Icons = ImageManager.Icons<br><br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Call DockRightOf(ReplyBar2, ReplyBar)<br>&nbsp; <br>End Sub<br><br>Private Sub DockRightOf(BarToDock As CommandBar, BarOnLeft As CommandBar)<br>&nbsp;&nbsp;&nbsp; Dim Left As Long<br>&nbsp;&nbsp;&nbsp; Dim Top As Long<br>&nbsp;&nbsp;&nbsp; Dim Right As Long<br>&nbsp;&nbsp;&nbsp; Dim Bottom As Long<br>&nbsp;&nbsp;&nbsp; Dim Left2 As Long<br>&nbsp;&nbsp;&nbsp; Dim Top2 As Long<br>&nbsp;&nbsp;&nbsp; Dim Right2 As Long<br>&nbsp;&nbsp;&nbsp; Dim Bottom2 As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CommandBars2.RecalcLayout<br>&nbsp;&nbsp;&nbsp; BarOnLeft.GetWindowRect Left, Top, Right, Bottom<br>&nbsp;&nbsp;&nbsp; BarToDock.GetWindowRect Left2, Top2, Right2, Bottom2<br>&nbsp;&nbsp;&nbsp; CommandBars2.DockToolBar BarToDock, Right, (Bottom + Top) / 2, BarOnLeft.Position<br>End Sub<br><br><br></font><br><img src="uploads/20080708_084615_commandbar2.jpg" height="394" width="500" border="0" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"></font><br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 08:47:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37967&amp;title=resolved-positioning-help-screenshot-added#37967</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) :  Add these lines: ReplyBar.EnableDocking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37916&amp;title=resolved-positioning-help-screenshot-added#37916</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 07 July 2008 at 8:12pm<br /><br />Add these lines:<br><br>&nbsp;<font color="#006600">&nbsp;&nbsp; </font><font color="#006600">ReplyBar.EnableDocking xtpFlagStretchedShared Or xtpFlagHideWrap<br>&nbsp;&nbsp;&nbsp; ReplyBar2.EnableDocking xtpFlagStretchedShared Or xtpFlagHideWrap</font><br><br><br>before:<br>&nbsp;&nbsp;&nbsp; <font color="#006600">Call DockRightOf(ReplyBar2, ReplyBar)</font><br>&nbsp;&nbsp; <br>]]>
   </description>
   <pubDate>Mon, 07 Jul 2008 20:12:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37916&amp;title=resolved-positioning-help-screenshot-added#37916</guid>
  </item> 
  <item>
   <title><![CDATA[RESOLVED: Positioning Help!! (Screenshot added) :       Allow me to throw...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37908&amp;title=resolved-positioning-help-screenshot-added#37908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4315">JasonG</a><br /><strong>Subject:</strong> 11331<br /><strong>Posted:</strong> 07 July 2008 at 3:09pm<br /><br />Allow me to throw a curve.<br><br>I have 2 CommandBar controls on a form (commandBar and commandBar2).CommandBar is on the form itself, while CommandBar2 is on a frame(actually a picturebox) that gets moved around the form as the form isresized or splitters are changed. Each CommandBar control is used tocontrol ONE toolbar.<br><br>This works perfectly, as expected.<br><br>However, now I want to add a 2nd toolbar to CommandBar2 - this is noproblem, however - I would like this 3rd toolbar to be right-aligned when the form is resized.<br><br>I assume there is a change to the "DockRightOf" function, but the measurements escape me for some reason.<br><br>Any help would be greatly appreciated!<br><br>Screenshot: <a href="http://www.trackmybookings.com/pimages/commandbar.jpg" target="_blank">http://www.trackmybookings.com/pimages/commandbar.jpg</a><br><br><br><br><br><br><br>Code:<br><br><font face="Courier New, Courier, mono" size="1">Sub InitializeCommandBar()<br><br>&nbsp;&nbsp;&nbsp; CommandBars.DeleteAll<br>&nbsp;&nbsp;&nbsp; CommandBars2.DeleteAll<br><br>&nbsp;&nbsp;&nbsp; Dim ToolBar As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim ReplyBar As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim ReplyBar2 As CommandBar<br>&nbsp;&nbsp;&nbsp; Dim C As CommandBarButton<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; 'MAIN TOOLBAR (ON FORM)<br>&nbsp;&nbsp;&nbsp; Set ToolBar = CommandBars.Add("Standard", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ToolBar.Customizable = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 1, "New")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 2, "Print")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 3, "Forward")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 4, "Chat")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 5, "Rotate")<br>&nbsp;&nbsp;&nbsp; Set C = ToolBar.Controls.Add(xtpControlButton, 6, "Skin")<br>&nbsp;&nbsp;&nbsp; ToolBar.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ToolBar.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; ToolBar.EnableDocking xtpFlagHideWrap<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br></font><font face="Courier New, Courier, mono" size="1">&nbsp;&nbsp;&nbsp; 'SECONDARY TOOLBAR (FIRST ON FRAME)</font><br><font face="Courier New, Courier, mono" size="1">&nbsp;&nbsp;&nbsp; Set ReplyBar = CommandBars2.Add("Reply", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ReplyBar.Customizable = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 7, "Send")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 8, "Send Later")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 9, "Send All")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlSplitButtonPopup, 10, "Acknowledge")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar.Controls.Add(xtpControlButton, 11, "CC")<br>&nbsp;&nbsp;&nbsp; ReplyBar.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ReplyBar.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; ReplyBar.EnableDocking xtpFlagHideWrap<br><br><br></font><font face="Courier New, Courier, mono" size="1">&nbsp;&nbsp;&nbsp; 'TERTIARY TOOLBAR (SECOND ON FRAME, RIGHT ALIGNED)</font><br><font face="Courier New, Courier, mono" size="1">&nbsp;&nbsp;&nbsp; Set ReplyBar2 = CommandBars2.Add("Reply2", xtpBarTop)<br>&nbsp;&nbsp;&nbsp; ReplyBar2.Customizable = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ContextMenuPresent = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowExpandButton = False<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowGripper = False<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar2.Controls.Add(xtpControlButton, 12, "Re-Send")<br>&nbsp;&nbsp;&nbsp; Set C = ReplyBar2.Controls.Add(xtpControlButton, 13, "Trash")<br>&nbsp;&nbsp;&nbsp; ReplyBar2.ShowTextBelowIcons = True<br>&nbsp;&nbsp;&nbsp; ReplyBar2.SetIconSize 32, 32<br>&nbsp;&nbsp;&nbsp; 'ReplyBar2.EnableDocking xtpFlagHideWrap<br><br>&nbsp;&nbsp;&nbsp; '</font><font face="Courier New, Courier, mono" size="1">-----------</font><font face="Courier New, Courier, mono" size="1">ICON CODE REMOVED-----------<br><br>&nbsp;&nbsp;&nbsp; Call DockRightOf(ReplyBar2, ReplyBar)&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp; <br>End Sub<br><br></font><div><font face="Courier New, Courier, mono" size="1">Private Sub DockRightOf(BarToDock As CommandBar, BarOnLeft As CommandBar)<br>&nbsp;&nbsp;&nbsp; Dim Left As Long<br>&nbsp;&nbsp;&nbsp; Dim Top As Long<br>&nbsp;&nbsp;&nbsp; Dim Right As Long<br>&nbsp;&nbsp;&nbsp; Dim Bottom As Long<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; CommandBars2.RecalcLayout<br>&nbsp;&nbsp;&nbsp; BarOnLeft.GetWindowRect Left, Top, Right, Bottom<br>&nbsp;&nbsp;&nbsp; CommandBars<b>2</b>.DockToolBar BarToDock, Right, (Bottom + Top) / 2, BarOnLeft.Position</font></div><font face="Courier New, Courier, mono" size="1">End Sub</font><br><br>]]>
   </description>
   <pubDate>Mon, 07 Jul 2008 15:09:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11331&amp;PID=37908&amp;title=resolved-positioning-help-screenshot-added#37908</guid>
  </item> 
 </channel>
</rss>