<?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 : [SOLVED] TaskPanelGroupItem SetSize Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Task Panel : [SOLVED] TaskPanelGroupItem SetSize Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 02:17:52 +0000</pubDate>
  <lastBuildDate>Sun, 09 May 2010 09:58:37 +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=16678</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[[SOLVED] TaskPanelGroupItem SetSize Issue : I have since resolved this issue....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16678&amp;PID=58385&amp;title=solved-taskpanelgroupitem-setsize-issue#58385</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 16678<br /><strong>Posted:</strong> 09 May 2010 at 9:58am<br /><br />I have since resolved this issue. I was using the SetSize and SetMargins incorrectly the first time I looked at this, after going away for a few minutes I realised how to resolve it... typical!!!<br><br>Code:<br><br><font color="#000099">Private Sub </font>CreateToolbox()<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Group <font color="#000099">As </font>TaskPanelGroup<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Item <font color="#000099">As </font>TaskPanelGroupItem<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Group = TaskPanel.Groups.Add(1, "Group By")<br>&nbsp;&nbsp;&nbsp; Group.Expanded = <font color="#000099">True</font><br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item = Group.Items.Add(1, "Test 1", xtpTaskItemTypeControl, 1)<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item.Control = Picture1<br>&nbsp;&nbsp;&nbsp; Item.SetSize 0, 0, <font color="#000099">True</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Item.SetMargins -8, -5, -8, -5&nbsp;&nbsp; <br><font color="#000099">End Sub</font><br><br><font color="#000099">Private Sub</font> Form_Resize()<br>&nbsp;&nbsp;&nbsp; <font color="#006600">' Resize the TaskPanel on Form Resize</font><br>&nbsp;&nbsp;&nbsp; TaskPanel.Move TaskPanel.left, TaskPanel.top, TaskPanel.Width, Me.ScaleHeight - TaskPanel.top - 120<br><br>&nbsp;&nbsp;&nbsp; <font color="#006600">' Resize the rpcGroupBy ReportControl inside the PictureBox, the PictureBox gets resized automatically by the TaskPanel</font><br>&nbsp;&nbsp;&nbsp; rpcGroupBy.Move 0, 0, picGroupBy.Width, picGroupBy.Height - 15<br><font color="#000099">End Sub<br><br></font>Result:<br><br><img src="uploads/20100509_095226_Screenshot.png" height="466" width="225" border="0"><br><img src="file:///C:/Users/Locky/AppData/Local/Temp/moz-screenshot-1.png" border="0"><img src="file:///C:/Users/Locky/AppData/Local/Temp/moz-screenshot-2.png" border="0">]]>
   </description>
   <pubDate>Sun, 09 May 2010 09:58:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16678&amp;PID=58385&amp;title=solved-taskpanelgroupitem-setsize-issue#58385</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] TaskPanelGroupItem SetSize Issue :   I have placed a ReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16678&amp;PID=58383&amp;title=solved-taskpanelgroupitem-setsize-issue#58383</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 16678<br /><strong>Posted:</strong> 09 May 2010 at 9:00am<br /><br />I have placed a ReportControl inside a PictureBox control then placed the PictureBox control inside a TaskPanelGroup.<br><br>Code:<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Group <font color="#000099">As </font>TaskPanelGroup<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Dim </font>Item <font color="#000099">As </font>TaskPanelGroupItem<br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Group = TaskPanel.Groups.Add(1, "Group By")<br>&nbsp;&nbsp;&nbsp; Group.Expanded = <font color="#000099">True</font><br><br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item = Group.Items.Add(1, "Test 1", xtpTaskItemTypeControl, 1)<br>&nbsp;&nbsp;&nbsp; <font color="#000099">Set </font>Item.Control = Picture1<br>&nbsp;&nbsp;&nbsp; Item.SetSize 0, 0, <font color="#000099">True</font><br>&nbsp;&nbsp;&nbsp; DoEvents<br><br>&nbsp;&nbsp;&nbsp; ReportControl.Move 0, 0, Picture1.Width, Picture1.Height<br><br>However using Item.SetSize 0, 0, True autosizes but does not fit the TaskPanelGroupItem exactly!<br><br>I have tried using Item.SetMargins, which I can use to correctly position the left and top margins correctly but I can't find the height and width of the TaskPanelGroupItem.<br><br>Does anybody know how to resolve this issue?<br><br><img src="http://forum.codejock.com/uploads/20100509_084246_Screenshot.bmp" height="466" width="225" border="0" /><br>]]>
   </description>
   <pubDate>Sun, 09 May 2010 09:00:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16678&amp;PID=58383&amp;title=solved-taskpanelgroupitem-setsize-issue#58383</guid>
  </item> 
 </channel>
</rss>