<?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 : CommandBar and TaskPanel alignment</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBar and TaskPanel alignment]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 15:57:28 +0000</pubDate>
  <lastBuildDate>Thu, 31 Mar 2011 11:49:57 +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=18141</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[CommandBar and TaskPanel alignment : MikeThanks for that excellent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63654&amp;title=commandbar-and-taskpanel-alignment#63654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6676">rogue</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 31 March 2011 at 11:49am<br /><br />Mike<br><br>Thanks for that excellent bit of advice.&nbsp; That call works great and I now have my taskpanel and picturebox (that will be a statusbar soon) sitting where they should be.<br><br>Bit confused as to how the MDISample works though as I can't find that call within the code?<br><br>Thanks, I can move on with my menus now.<br><br>Simon<br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 11:49:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63654&amp;title=commandbar-and-taskpanel-alignment#63654</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar and TaskPanel alignment : Try adding the following code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63653&amp;title=commandbar-and-taskpanel-alignment#63653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 31 March 2011 at 10:37am<br /><br />Try adding the following code to the CommandBars_RepositionAlignedControls event assuming you name your TaskPanel "wndTaskPanel" (or picturebox if you go that route):<br><br>Private Sub CommandBars_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long)<br><br>&nbsp;&nbsp;&nbsp; CommandBars.MoveAlignedControl wndTaskPanel, Left, Top, Right, Bottom<br><br>End Sub&nbsp;]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 10:37:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63653&amp;title=commandbar-and-taskpanel-alignment#63653</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar and TaskPanel alignment : HiThanks for that. You&amp;#039;re...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63650&amp;title=commandbar-and-taskpanel-alignment#63650</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6676">rogue</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 31 March 2011 at 3:59am<br /><br />Hi<br><br>Thanks for that.&nbsp; You're right I had just 'assumed' task panel controls were in the sample because they named them that way! Doh!<br><br>I've changed things as you suggested but now my picturebox (aligned left) is sitting inside my menubar when the form loads.&nbsp; Obviously that makes it very shallow so the task panel can't really be seen.<br><br>Thanks<br><br>Simon<br><br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 03:59:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63650&amp;title=commandbar-and-taskpanel-alignment#63650</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar and TaskPanel alignment : Hi,If you are using the TaskPanel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63649&amp;title=commandbar-and-taskpanel-alignment#63649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 31 March 2011 at 3:40am<br /><br />Hi,<br><br>If you are using the TaskPanel directly on the MDI Form then this is why it's not working as per the MDI Sample. If you notice the wndTaskPanel in the MDI Sample is a PictureBox control and not an actual TaskPanel control.<br><br>Therefore if you put a PictureBox control on the screen first and align this left then place your TaskPanel control inside of this it should resolve your issue with the CommandBars.<br>]]>
   </description>
   <pubDate>Thu, 31 Mar 2011 03:40:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63649&amp;title=commandbar-and-taskpanel-alignment#63649</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar and TaskPanel alignment : Have experimented a bit more and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63640&amp;title=commandbar-and-taskpanel-alignment#63640</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6676">rogue</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 30 March 2011 at 12:05pm<br /><br />Have experimented a bit more and noted the following.<br><br>1)&nbsp; If the CommandBars object is on the MDI form then I see a blank menu strip across the regardless of whether I code anything against it or not.<br><br>2) If the CommandBars object is present the statusbar object I already had present disappears but the TaskPanel&nbsp; still allows space for it.<br><br>I am programming in VB6 btw.<br><br>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 12:05:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63640&amp;title=commandbar-and-taskpanel-alignment#63640</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBar and TaskPanel alignment : HiI am new to the suite which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63639&amp;title=commandbar-and-taskpanel-alignment#63639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6676">rogue</a><br /><strong>Subject:</strong> 18141<br /><strong>Posted:</strong> 30 March 2011 at 11:46am<br /><br />Hi<br><br>I am new to the suite which is excellent by the way! I am trying to have a Task Panle and a menu on my main MDI form.<br><br>The menu and taskpanel will disappear once a choice is made and a child form is loaded.<br><br>My taskpanel (tskmain) works fine and is aligned left.<br><br>I have lifted your default code for createing the 'activemenu' as below.&nbsp; My CommandBars object is called cmdMain.<br><br>My taskpanel is set to align left and it does that but it overlaps the created menu bar.<br><br>If I create a child form it occupys the client space I'd expect (ie. it doesn't go over the menu).<br><br>I've looked through various samples and tried to search the forum for this but can't pin down anything that seems to instruct the taskpanel to relinquish the space for the menu<br><br>I'm not doing anything with a 'resize' call for either the MDI form or the CommandBars/TaskPanel - possibly I should be?&nbsp; <br><br>The sample called CommandBarsMDISample looked very similar to what I want in the sense there are menu bars and a taskpanel but this works fine on my machine, the taskpanel's top is just under the menu and toolbar but the bit of code that instructs the taskpanel to behave eludes me.<br><br>--<br><br><br>Dim Control As CommandBarControl<br>Dim ControlFile As CommandBarPopup, ControlEdit As CommandBarPopup<br>Dim ControlView As CommandBarPopup<br>Dim ControlWindow As CommandBarPopup, ControlHelp As CommandBarPopup<br><br>&nbsp;&nbsp;&nbsp; Set ControlFile = cmdMain.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, _<br>&nbsp;&nbsp;&nbsp; "&amp;File", -1, False)<br><br>&nbsp;&nbsp;&nbsp; With ControlFile.CommandBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_NEW, "&amp;New", -1, False)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_OPEN, "&amp;Open", -1, False)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_CLOSE, "&amp;Close", -1, False<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_SAVE, "&amp;Save", -1, False<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_PRINT, "&amp;Print", -1, False)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_FILE_PRINT_SETUP, "Print Set&amp;up...", -1, False<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_FILE_EXIT, "&amp;Exit", -1, False)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp; End With<br><br>&nbsp;&nbsp;&nbsp; tskMain.Groups.Clear<br>&nbsp; ... code continues here to create tasks in the task panel ... works fine<br><br>Thanks<br><br>Simon<br><br><br>]]>
   </description>
   <pubDate>Wed, 30 Mar 2011 11:46:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18141&amp;PID=63639&amp;title=commandbar-and-taskpanel-alignment#63639</guid>
  </item> 
 </channel>
</rss>