<?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 : UserC&#111;ntrols and CommandBars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : UserC&#111;ntrols and CommandBars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:37:33 +0000</pubDate>
  <lastBuildDate>Thu, 16 Sep 2004 09:13:25 +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=1177</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[UserC&#111;ntrols and CommandBars :  That&amp;#039;s looking better....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3148&amp;title=usercontrols-and-commandbars#3148</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 16 September 2004 at 9:13am<br /><br /><P><IMG src="http://forum.codejock.com/smileys/smiley32.gif" border="0"></P><P>That's looking better. Added some similar code to our real app now and the usercontrol can indeed resize itself now (as long as we call RecalcLayout afterwards and then use the usercontrol width to adjust the left/right properties of MoveAlignedControl). </P><P>Thank for all the help so far. Although you may not have seen the last of me. <IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></P>]]>
   </description>
   <pubDate>Thu, 16 Sep 2004 09:13:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3148&amp;title=usercontrols-and-commandbars#3148</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : Take a look at this:   2004-09-16_082934_Project1.zip...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3142&amp;title=usercontrols-and-commandbars#3142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 16 September 2004 at 8:29am<br /><br />Take a look at this:<br><br><a href="uploads/SuperMario/2004-09-16_082934_Project1.zip" target="_blank">2004-09-16_082934_Project1.zip</a>]]>
   </description>
   <pubDate>Thu, 16 Sep 2004 08:29:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3142&amp;title=usercontrols-and-commandbars#3142</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : Here&amp;#039;s the uploaded project....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3141&amp;title=usercontrols-and-commandbars#3141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 16 September 2004 at 5:50am<br /><br /><P>Here's the uploaded project. VERY simple as you'll see. I'll keep plugging away...</P><P><A href="https://forum.codejock.com/uploads/GeraintP/2004-09-16_055029_Project1.zip" target="_blank">2004-09-16_055029_Project1.zip</A></P>]]>
   </description>
   <pubDate>Thu, 16 Sep 2004 05:50:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3141&amp;title=usercontrols-and-commandbars#3141</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : Nope - no luck at all. I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3140&amp;title=usercontrols-and-commandbars#3140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 16 September 2004 at 5:06am<br /><br /><P>Nope - no luck at all. I'm finding the MoveAlignedControl method <EM>very</EM> confusing to be honest. For example, the Right property is described as "The space between the right side of the control and the right side of the container of the control.". Assuming I have a picturebox aligned to the right of the MDIForm, then you'd assume that this should be zero, which it patently isn't in the example above (in RepositionAlignedControls). </P><P>MoveAlignedControl seems to be doing this - send me the current client area and I'll reposition your aligned&nbsp;control with that and return you the new client area. It moves the control, but can't seem to resize it. Which is fair enough, except of course I can't resize the control any other way either.</P><P>I'll be uploading a simple example of this a bit later. I'd be grateful if you could take a quick look and see if there's a definite solution. Ta.</P>]]>
   </description>
   <pubDate>Thu, 16 Sep 2004 05:06:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3140&amp;title=usercontrols-and-commandbars#3140</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars :  Try something like this assuming...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3129&amp;title=usercontrols-and-commandbars#3129</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 11:28am<br /><br />Try something like this assuming your picturebox is on the right side of the MDIForm:<br><br>&nbsp;&nbsp;&nbsp; Dim NewWidth as Long &nbsp;  <br>&nbsp;&nbsp;&nbsp; NewWidth = Right - SliderValue<br>&nbsp;&nbsp;&nbsp; CommandBars1.MoveAlignedControl Picture1, NewWidth, Top, Right, Bottom <br><span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 11:28:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3129&amp;title=usercontrols-and-commandbars#3129</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : Sorry, but I&amp;#039;m not sure I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3128&amp;title=usercontrols-and-commandbars#3128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 10:59am<br /><br /><P>Sorry, but I'm not sure I understand exactly where I should be changing the width. Currently I use MoveAlignedControl as you've suggested in other threads. i.e.</P><P><FONT face="Courier New, Courier, mono" size=1>Private Sub CommandBars_RepositionAlignedControls(Left As Long, Top As Long, Right As Long, Bottom As Long)<BR>&nbsp;&nbsp;&nbsp; CommandBars.MoveAlignedControl Picture1, Left, Top, Right, Bottom<BR>End Sub</FONT><BR></P><P>At the moment, no matter where picture1.width is changed, it doesn't seem to affect the control. Am&nbsp;I missing something obvious?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 10:59:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3128&amp;title=usercontrols-and-commandbars#3128</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : change the width of the picturebox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3127&amp;title=usercontrols-and-commandbars#3127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 10:43am<br /><br />change the width of the picturebox in the movealignedcontrol methodjust before it is moved.&nbsp; Also make sure that the commanbars isusing the same scale (twips\pixels) as your MDIform.]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 10:43:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3127&amp;title=usercontrols-and-commandbars#3127</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : After looking at this a bit further...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3126&amp;title=usercontrols-and-commandbars#3126</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 10:21am<br /><br /><P>After looking at this a bit further I can probably simplify what I'm asking now.</P><P>If I have a picturebox aligned to the left of a MDIForm with a width of say, 2000 twips. I use MoveAlignedControls within the CommandBars_RepositionAlignedControls event. If I have a button which increases the width of the picturebox to 4000 twips, then nothing happens - the width stays the same. Is this expected behaviour?</P>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 10:21:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3126&amp;title=usercontrols-and-commandbars#3126</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : In typical fashion I managed to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3125&amp;title=usercontrols-and-commandbars#3125</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=731">Geraint P</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 9:32am<br /><br /><P>In typical fashion I managed to find a workaround after posting this, with a combination of ClientToScreen and ScreenToClient. Because our control won't necessarily be working with&nbsp; CommandBars present it had to be able to work out the coords without using a call to CommandBars itself.</P><P>Really I only seem to have one further problem; the user control can't seem to resize itself. The line <FONT face="Courier New, Courier, mono" size=2>UserControl.Width = &lt;new width&gt;</FONT> within our user control doesn't seem to have any effect at all with a CommandBars present. Any ideas? This seems to have something to do with it's interaction with the MoveAlignedControl method.</P>]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 09:32:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3125&amp;title=usercontrols-and-commandbars#3125</guid>
  </item> 
  <item>
   <title><![CDATA[UserC&#111;ntrols and CommandBars : GetClientRect will return the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3124&amp;title=usercontrols-and-commandbars#3124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1177<br /><strong>Posted:</strong> 15 September 2004 at 8:43am<br /><br />GetClientRect will return the top, left, bottom, and right coordinates of the client area. &nbsp;]]>
   </description>
   <pubDate>Wed, 15 Sep 2004 08:43:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1177&amp;PID=3124&amp;title=usercontrols-and-commandbars#3124</guid>
  </item> 
 </channel>
</rss>