<?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 : TaskPanel - AddControlItem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : TaskPanel - AddControlItem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:49:45 +0000</pubDate>
  <lastBuildDate>Thu, 05 Apr 2007 12:15:17 +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=6799</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[TaskPanel - AddControlItem : Looks like I found the problem.I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6799&amp;PID=21714&amp;title=taskpanel-addcontrolitem#21714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1804">kram617</a><br /><strong>Subject:</strong> 6799<br /><strong>Posted:</strong> 05 April 2007 at 12:15pm<br /><br /><DIV>Looks like I found the problem.&nbsp;&nbsp;I was calling SetSize for each item in my OnSize handler, but I wasn't checking first if that particular group was expanded.&nbsp; So basically, I was resizing an item to nothing because the group height is zero when collapsed.&nbsp; Thus, the next time I would expand a group the item wouldn't appear.</DIV><DIV>&nbsp;</DIV><DIV>Now I don't resize until I receive a <strong>XTP_TPN_GROUPEXPANDED</strong> actions from XTPWM_TASKPANEL_NOTIFY.</DIV>]]>
   </description>
   <pubDate>Thu, 05 Apr 2007 12:15:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6799&amp;PID=21714&amp;title=taskpanel-addcontrolitem#21714</guid>
  </item> 
  <item>
   <title><![CDATA[TaskPanel - AddControlItem : Hello,  I am trying to use TaskPanel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6799&amp;PID=21685&amp;title=taskpanel-addcontrolitem#21685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1804">kram617</a><br /><strong>Subject:</strong> 6799<br /><strong>Posted:</strong> 04 April 2007 at 8:16am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I am trying to use TaskPanel with Version 9.70.&nbsp; I have created two groups and I use AddControlItem to add a child window to each group.&nbsp; (One group has a list box, the other group has a tree control.)&nbsp; I am currently using xtpTaskPanelThemeListViewOffice2003 for my theme, so I can have an Outlook 2003 look.</DIV><DIV>&nbsp;</DIV><DIV>The problem I am having is that switching between groups doesn't make my child windows visible.&nbsp; For example, if I have Group 1 expanded and am looking at my tree control, then I click&nbsp;to expand&nbsp;Group 2, I&nbsp;don't see my list box.&nbsp; But I click back onto Group 1, I still see my tree control.&nbsp; However, after expanding Group 2, if I resize the window, the list box will then reappear.&nbsp; But then I click back to expand Group 1, and my tree control isn't visible.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>It's as if only one CXTPTaskPanelGroupItem can be visible at a time, regardless of whether they are in seperate groups.</DIV><DIV>&nbsp;</DIV><DIV>If anybody can help me, you have my thanks.</DIV><DIV>&nbsp;</DIV><DIV>----------------------------------------------------------------</DIV><DIV>&nbsp;</DIV><DIV>BTW, here is my code for creating the Task Panel and contents, if this is any help....</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if (m_TaskPanel.Create(WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN , CXTPEmptyRect(),&nbsp;&nbsp;this, IDC_TASKPANEL))<BR>&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TaskPanel.SetTheme(xtpTaskPanelThemeListViewOffice2003);&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TaskPanel.SetBehaviour(xtpTaskPanelBehaviourToolbox);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_TaskPanel.SetSelectItemOnFocus(TRUE);<BR></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pItemLayoutGroup = m_TaskPanel.AddGroup(IDS_WORKSPACE_ITEMLAYOUT);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pReportViewGroup = m_TaskPanel.AddGroup(IDS_WORKSPACE_REPORTVIEW);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pReportViewGroup-&gt;SetExpanded(TRUE);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_treeItemLayout.Create(WS_CHILD | WS_VISIBLE | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_INFOTIP | TVS_SHOWSELALWAYS,&nbsp;CXTPEmptyRect(), &amp;m_TaskPanel, IDC_WORKSPACE_TREE_SECTIONS);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pItemLayoutItem = m_pItemLayoutGroup-&gt;AddControlItem(m_treeItemLayout.GetSafeHwnd());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_lstReportSections.Create(WS_CHILD | WS_VISIBLE | LBS_STANDARD | WS_HSCROLL,&nbsp;CXTPEmptyRect(), &amp;m_TaskPanel, IDC_WORKSPACE_LIST_REPORT);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pReportViewItem = m_pReportViewGroup-&gt;AddControlItem(m_lstReportSections.GetSafeHwnd());</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 04 Apr 2007 08:16:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6799&amp;PID=21685&amp;title=taskpanel-addcontrolitem#21685</guid>
  </item> 
 </channel>
</rss>