<?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 : Changed behaviour of &quot;xtpTabLayoutSizeToFit&quot;</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Changed behaviour of &quot;xtpTabLayoutSizeToFit&quot;]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:13:51 +0000</pubDate>
  <lastBuildDate>Fri, 26 Jan 2007 05:41:58 +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=6219</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[Changed behaviour of &quot;xtpTabLayoutSizeToFit&quot; :  Thank you, oleg, I think this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19745&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6219<br /><strong>Posted:</strong> 26 January 2007 at 5:41am<br /><br />Thank you, oleg, I think this will help me.<br><br>Anyway, I'm glad that my long explanation above could be understood without any difficulties.&nbsp;<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0" align="absmiddle"> I was not sure whether it's clear enough.<br>]]>
   </description>
   <pubDate>Fri, 26 Jan 2007 05:41:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19745&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19745</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behaviour of &quot;xtpTabLayoutSizeToFit&quot; : Hi, you can modify sources in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19716&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6219<br /><strong>Posted:</strong> 25 January 2007 at 5:03am<br /><br />Hi, you can modify sources in CXTPDockingPaneAutoHidePanel::RefreshManagersArray. And modify rcClient before call pManager-&gt;GetPaintManager()-&gt;RepositionTabControl(pManager, pDC, rcClient);<BR>]]>
   </description>
   <pubDate>Thu, 25 Jan 2007 05:03:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19716&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19716</guid>
  </item> 
  <item>
   <title><![CDATA[Changed behaviour of &quot;xtpTabLayoutSizeToFit&quot; :   Hello,my clients required...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19712&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6219<br /><strong>Posted:</strong> 25 January 2007 at 3:35am<br /><br />Hello,<br><br>my clients required <b><font color="#0000ff">to make the autohidden tabs as long as possible</font></b>, that is, to use the whole available space. So I've set the layout to "<font face="Courier New, Courier, mono">xtpTabLayoutSizeToFit</font>", then declared <b><font color="#0000ff">CXTPTabPaintManager::SizeToFit()</font></b> as virtual and overrode it. In my override, I allow not just to shrink tabs if it's needed, but I also make them longer whenever possible. It works fine, so instead of the default behaviour, I get this special behaviour of mine - which is the desired state:<br><br><div align="center"><img src="uploads/20070125_031223_sizetofit_1.jpg" height="52" width="515" border="0"><br></div><div align="center">&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;  (tabs are resized to take the whole space available)<br></div><br><div align="center"><img src="uploads/20070125_032053_sizetofit_2.jpg" height="52" width="838" border="0"><br></div><div align="center">(I've defined also a maximal tab length that must not be exceeded)<br></div><br><br>This would be fine; the only problem is that when autohiding anothergroup of panes, the first group doesn't get resized to leave some spacefor the second group. That means, the second group will get only therest of the space -- the space which has not been used up by group 1:<br><br><div align="center"><img src="uploads/20070125_031407_sizetofit_4.jpg" height="52" width="579" border="0"><br></div><br>Now, if I keep reducing the width of the main window, the width of the 1st group remains unchanged, so only the 2nd group keeps shrinking until it disappears completely. Group 1 will start shrinking only when group 2 is completely invisible (has a zero-pixel width). Basically, the problem is that group 1 is "greedy"!<br><br>What do you think, how can the autosizing be changed to resize all tab groups, so that they can <b><font color="#0000ff">share the available space fairly?</font></b><br><br>Thank you, in advance!<br><br><br><br><br><br>]]>
   </description>
   <pubDate>Thu, 25 Jan 2007 03:35:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6219&amp;PID=19712&amp;title=changed-behaviour-of-xtptablayoutsizetofit#19712</guid>
  </item> 
 </channel>
</rss>