<?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 : How to auto size groups</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : How to auto size groups]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 10:09:20 +0000</pubDate>
  <lastBuildDate>Tue, 20 Mar 2007 03:57:19 +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=6675</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[How to auto size groups :   mgampi wrote:  oleg wrote:Hi,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21281&amp;title=how-to-auto-size-groups#21281</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6675<br /><strong>Posted:</strong> 20 March 2007 at 3:57am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mgampi" alt="Originally posted by mgampi" style="vertical-align: text-bottom;" /> <strong>mgampi wrote:</strong><br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi, <DIV>Change its behaviour to xtpTaskPanelBehaviourToolbox.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Thanks Oleg, this works!</DIV><DIV>But now, where's the best place to size the dialog contained within the group, so that it spans the whole group client area?</DIV><DIV>&nbsp;</DIV><DIV>In my CXTPTaskPanel parent class I do it like this:</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>if</FONT><FONT size=2> (_panel.GetSafeHwnd())</DIV><DIV><DIV>{ </DIV><DIV>&nbsp;&nbsp;&nbsp; _panel.MoveWindow(rcClient);</DIV><DIV>&nbsp;&nbsp;&nbsp; CXTPTaskPanelGroup* pGroup=_panel.FindGroup(0);</DIV><DIV>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pGroup!=0)</FONT><FONT size=2>{ </FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPTaskPanelPaintManager* pPainter=_panel.GetPaintManager();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT size=2>CRect rcGrpClient=pGroup-&gt;GetClientRect();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect rcMargins=pPainter-&gt;GetGroupInnerMargins(pGroup);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rcGrpClient.DeflateRect(rcMargins.left, rcMargins.top, rcMargins.right, rcMargins.bottom);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _taskDlg.MoveWindow(rcGrpClient);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>But this leads to some&nbsp;unwanted flickering - I believe that the task panel first (re)sizes the dialog to its initial size</FONT>&nbsp;as set in .rc file and then my code is executed.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV></DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Oleg;</DIV><DIV>&nbsp;</DIV><DIV>I solved it myself. I knew the CXTPTaskPanelItem::SetSize(..,AutoHeight) function but I forgot to call it.</DIV><DIV>Nevertheless thanks for a great product!</DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 03:57:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21281&amp;title=how-to-auto-size-groups#21281</guid>
  </item> 
  <item>
   <title><![CDATA[How to auto size groups :   oleg wrote:Hi,  Change its...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21280&amp;title=how-to-auto-size-groups#21280</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6675<br /><strong>Posted:</strong> 20 March 2007 at 3:45am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi, <DIV>Change its behaviour to xtpTaskPanelBehaviourToolbox.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Thanks Oleg, this works!</DIV><DIV>But now, where's the best place to size the dialog contained within the group, so that it spans the whole group client area?</DIV><DIV>&nbsp;</DIV><DIV>In my CXTPTaskPanel parent class I do it like this:</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>if</FONT><FONT size=2> (_panel.GetSafeHwnd())</DIV><DIV><DIV>{ </DIV><DIV>&nbsp;&nbsp;&nbsp; _panel.MoveWindow(rcClient);</DIV><DIV>&nbsp;&nbsp;&nbsp; CXTPTaskPanelGroup* pGroup=_panel.FindGroup(0);</DIV><DIV>&nbsp;&nbsp;&nbsp; </FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pGroup!=0)</FONT><FONT size=2>{ </FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPTaskPanelPaintManager* pPainter=_panel.GetPaintManager();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT size=2>CRect rcGrpClient=pGroup-&gt;GetClientRect();</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect rcMargins=pPainter-&gt;GetGroupInnerMargins(pGroup);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rcGrpClient.DeflateRect(rcMargins.left, rcMargins.top, rcMargins.right, rcMargins.bottom);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _taskDlg.MoveWindow(rcGrpClient);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; }</FONT></DIV><DIV><FONT size=2>}</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>But this leads to some&nbsp;unwanted flickering - I believe that the task panel first (re)sizes the dialog to its initial size</FONT>&nbsp;as set in .rc file and then my code is executed.</DIV><DIV>&nbsp;</DIV><DIV>Any ideas?</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 03:45:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21280&amp;title=how-to-auto-size-groups#21280</guid>
  </item> 
  <item>
   <title><![CDATA[How to auto size groups : Hi,  Change its behaviour to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21278&amp;title=how-to-auto-size-groups#21278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6675<br /><strong>Posted:</strong> 20 March 2007 at 2:32am<br /><br />Hi, <DIV>Change its behaviour to xtpTaskPanelBehaviourToolbox.</DIV>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 02:32:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21278&amp;title=how-to-auto-size-groups#21278</guid>
  </item> 
  <item>
   <title><![CDATA[How to auto size groups : Hi;  I&amp;#039;ve created a CXTPTaskPanel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21268&amp;title=how-to-auto-size-groups#21268</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 6675<br /><strong>Posted:</strong> 19 March 2007 at 1:23pm<br /><br />Hi; <DIV>I've created a CXTPTaskPanel within a resizable dialog, that contains only one group. When the user resizes the dialog, I want the group to be resized too, so that the group occupies the whole task panel rect (minus any margins set). The width is resized automatically, but the height&nbsp;stays always the same!</DIV><DIV>Any hints on how to achieve this are welcome.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 19 Mar 2007 13:23:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6675&amp;PID=21268&amp;title=how-to-auto-size-groups#21268</guid>
  </item> 
 </channel>
</rss>