<?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 : Calculating CommandBar Height</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Calculating CommandBar Height]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 03:32:04 +0000</pubDate>
  <lastBuildDate>Sat, 31 Jan 2004 08:57:32 +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=401</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[Calculating CommandBar Height : You should place the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=401&amp;PID=910&amp;title=calculating-commandbar-height#910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=260">Boyd</a><br /><strong>Subject:</strong> 401<br /><strong>Posted:</strong> 31 January 2004 at 8:57am<br /><br /><P>You should place the following code in the Form_Resize event:</P><P>&nbsp;&nbsp;&nbsp; Dim Left As Long, Top As Long, Right As Long, Bottom As Long<BR>&nbsp;&nbsp;&nbsp; CommandBars.GetClientRect Left, Top, Right, Bottom</P><P>These variable will determine the boundary of the client area that is not being used by the CommandBars.&nbsp; Keep in mind that the bars can be docked to the left, right, and bottom, so getting the height isn't all you have to know.&nbsp; I may be mistaken, but I beleive the values are returned in your current scale mode (Twips by default).</P><P>Now that you have this code, you can position your tabstrip.</P><P>&nbsp;&nbsp;&nbsp; TabStrip.Move Left + 1, Top + 1, Right - Left - 2</P><P>This will give your tabstrip the proper Top, Left, and Width.&nbsp; Height is left unmodified.</P><P>Hope this helps!</P>]]>
   </description>
   <pubDate>Sat, 31 Jan 2004 08:57:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=401&amp;PID=910&amp;title=calculating-commandbar-height#910</guid>
  </item> 
  <item>
   <title><![CDATA[Calculating CommandBar Height : I know this was asked before by...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=401&amp;PID=909&amp;title=calculating-commandbar-height#909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=294">MikeV</a><br /><strong>Subject:</strong> 401<br /><strong>Posted:</strong> 30 January 2004 at 11:47pm<br /><br /><P>I know this was asked before by someone else but I didn't understand the answer, so let me try again:</P><P>My problem is I need to position a tabstrip right below the where ever the CommandBar ends (since the system font can affect the CommandBar height)</P><P>I would assume the solution is something like:</P><P>for i = 0 to CommandBar.Count</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>CommandBar(i).GetWindowRect lLeft, lTop, lRight, lBottom</P><P>lTotalHeight = lTotalHeight + (lBottom - lTop)</P></BLOCKQUOTE><P dir=ltr>next i</P><P dir=ltr>My problem is; 1) I'm not getting any value returned in the variables I pass, and 2) Even if I did get a value would it represent Twips?&nbsp; If it's not twips what is it and how do i convert it to something I can work with?</P><P>I looked through all the samples and didnt' see an example of this.&nbsp; Can someone (or Oleg <IMG src="http://forum.codejock.com/smileys/smiley1.gif" border="0">) post an example?</P><P>Thanks</P>]]>
   </description>
   <pubDate>Fri, 30 Jan 2004 23:47:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=401&amp;PID=909&amp;title=calculating-commandbar-height#909</guid>
  </item> 
 </channel>
</rss>