<?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 : Indent Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Indent Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 12:50:46 +0000</pubDate>
  <lastBuildDate>Thu, 02 Apr 2009 16:22:56 +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=13878</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[Indent Problem : here what I discovered: I used...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47516&amp;title=indent-problem#47516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 4:22pm<br /><br />here what I discovered: I used AddRecordEx to add records and apparently it does not work correctly.<DIV>I switched to AddRrcord + Populate and it works well now.</DIV><DIV>THank you Mark.</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 16:22:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47516&amp;title=indent-problem#47516</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : This is a demo to add new childrecords...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47514&amp;title=indent-problem#47514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 2:50pm<br /><br />This is a demo to add new child&nbsp;records run-time on mouse r-click on report row <DIV><FONT color=#0000ff size=2><FONT size=2><P>afx_msg </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> OnReportRClick(NMHDR * pNotifyStruct, LRESULT * result);</P><DIV><FONT size=2><P>ON_NOTIFY(NM_RCLICK, IDC_REPORT, OnReportRClick)</P></FONT></FONT></FONT><FONT color=#0000ff size=2></FONT></DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CTreeViewDlg::OnReportRClick(NMHDR * pNotifyStruct, LRESULT * </FONT><FONT color=#008000 size=2>/*result*/</FONT><FONT size=2>){</DIV></DIV><DIV><P>XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItemNotify-&gt;pRow)</P><P>{</P></FONT><FONT color=#008000 size=2><P>// TRACE(_T("Right click on row %d\n"), pItemNotify-&gt;pRow-&gt;GetIndex());</P></FONT><FONT size=2><P>COleDateTime odtSent(COleDateTime::GetCurrentTime());</P><P>COleDateTime odtCreated(COleDateTime::GetCurrentTime());</P><P>COleDateTime odtReceived(COleDateTime::GetCurrentTime());</P><P>CString strMessage(</FONT><FONT color=#a31515 size=2>" "</FONT><FONT size=2>);</P><P>CString strEmpty(</FONT><FONT color=#a31515 size=2>" "</FONT><FONT size=2>);</P><P>odtSent -= 8;</P><P>CMessageRecord* pRec = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CMessageRecord(msgImportanceNormal, TRUE, TRUE, </P><P>_T(</FONT><FONT color=#a31515 size=2>"Somebody"</FONT><FONT size=2>), _T(</FONT><FONT color=#a31515 size=2>"I Understand!"</FONT><FONT size=2>), odtSent, 24, FALSE, 5.4321,</P><P>odtCreated, odtReceived, strEmpty, strEmpty, strMessage,</P><P>strEmpty, strEmpty, strEmpty,</P><P>strEmpty, strEmpty,</P><P>strMessage); </P><P>CXTPReportRecord* pNew = pItemNotify-&gt;pRow-&gt;GetRecord()-&gt;GetChilds()-&gt;Add(pRec);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pNew)</P><P>pItemNotify-&gt;pRow-&gt;SetExpanded(TRUE, TRUE);</P><P>m_wndReport.Populate();</P><P>}</P><P>}</P><DIV></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 14:50:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47514&amp;title=indent-problem#47514</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : the code sample will certainly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47513&amp;title=indent-problem#47513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 2:46pm<br /><br />the code sample will certainly help.]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 14:46:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47513&amp;title=indent-problem#47513</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : run recommended sample. from menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47510&amp;title=indent-problem#47510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 2:23pm<br /><br />run recommended sample. from menu call TreeView Dlg - see how indenting done for subject items - click on expand little button to see. I can give you the code for this dialog]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 14:23:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47510&amp;title=indent-problem#47510</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : I requested v13.1 and waiting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47508&amp;title=indent-problem#47508</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 1:51pm<br /><br />I requested v13.1 and waiting for response. Meanwhile I tried this after adding each record:<FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2>(pMsg)</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; this</FONT></FONT><FONT size=2>-&gt;SendMessage(WM_ADD_RECORD_EX, (WPARAM)pMsg, 0);</P></FONT><FONT size=2><P>SetTreeIndent(10);</P><P>AdjustLayout();</P><P>RedrawWindow(0, 0, RDW_ALLCHILDREN|RDW_INVALIDATE);</P><DIV></DIV><P>neither of it helps.</P><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2></P></FONT></FONT><DIV></DIV></FONT>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 13:51:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47508&amp;title=indent-problem#47508</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : You uploaded file based on old...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47507&amp;title=indent-problem#47507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 12:54pm<br /><br />You uploaded file based on old version. Please re-run with current and we can talk later. I propose also call layout adjustment after populate - why don't try it? <DIV>&nbsp;</DIV><DIV>I also don't know how you add new records as child records? Need code to check. But refresh all to current version first</DIV>]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 12:54:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47507&amp;title=indent-problem#47507</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : are you saying the the order of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47505&amp;title=indent-problem#47505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 02 April 2009 at 12:51pm<br /><br />are you saying the the order of the calls is not correct? if that's the case what should it be? populating the control with data comes way later when I have the data. actually, the problem is not with the ident of the group and subgroup - they are indented fine... the problem is that the data that I gather later and add to a subgroup is not indented... - pls see the file that I uploaded (link is in my original post)]]>
   </description>
   <pubDate>Thu, 02 Apr 2009 12:51:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47505&amp;title=indent-problem#47505</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem : Do you try to call ShowGroupBy...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47467&amp;title=indent-problem#47467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 01 April 2009 at 11:04pm<br /><br /><P>Do you try to call ShowGroupBy after Populate call? Same for GetGroupOrder()-&gt;Add calls?</P><DIV>Also you need to check current version (13.1) - here you can get static app to try: <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSampleSatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSampleSatic.rar</A><BR></DIV>]]>
   </description>
   <pubDate>Wed, 01 Apr 2009 23:04:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47467&amp;title=indent-problem#47467</guid>
  </item> 
  <item>
   <title><![CDATA[Indent Problem :  The ident of the rows does not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47388&amp;title=indent-problem#47388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3516">securigy</a><br /><strong>Subject:</strong> 13878<br /><strong>Posted:</strong> 31 March 2009 at 2:11pm<br /><br /><a href="https://forum.codejock.com/uploads/20090331_140145_Codekock-12-1-I.zip" target="_blank"><DIV>The ident of the rows does not display correctly, it corrects itself only when I click on the sort header of the Name column</DIV><DIV>&nbsp;</DIV><DIV>see screenshot below (records/rows do not have correct ident). Is there anyway to fix it? Is it a bug in reportctrl or something that I am not doing right?</DIV><DIV>&nbsp;</DIV><DIV>uploads/20090331_140145_Codekock-12-1-I.zip</DIV><DIV>&nbsp;</DIV><DIV>========================</DIV><DIV>the code:</DIV><DIV>&nbsp;</DIV><DIV>in CReportCtrl::OnInitDialog, I have:</DIV><FONT size=2><P>m_wndReportCtrl.SetTreeIndent(10);</P><DIV></DIV><FONT size=2><P>m_wndReportCtrl.AddColumn(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPReportColumn(COLUMN_ICON, L</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>""</FONT></FONT><FONT size=2>, 18, FALSE, ICON_ICON_IDX));</P><P>m_wndReportCtrl.AddColumn(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPReportColumn(COLUMN_CHECK, L</FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>""</FONT></FONT><FONT size=2>, 18, FALSE, CHECK_ICON_IDX));</P><P>CString csStr;</P><P>csStr.LoadString(IDS_DEVICE_TYPE_MAJOR);</P><P>m_wndReportCtrl.AddColumn(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPReportColumn(COLUMN_DEVTYPE, csStr, 280));</P><P>csStr.LoadString(IDS_DEVICE_TYPE_MINOR);</P><P>m_wndReportCtrl.AddColumn(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> CXTPReportColumn(COLUMN_DEVSUBTYPE, csStr, 280));</P><DIV></DIV><P>&nbsp;</P><FONT size=2><P>m_wndReportCtrl.ShowGroupBy();</P><P>m_wndReportCtrl.GetColumns()-&gt;GetGroupsOrder()-&gt;Add(m_wndReportCtrl.GetColumns()-&gt;GetAt(COLUMN_DEVTYPE));</P><P>m_wndReportCtrl.GetColumns()-&gt;GetGroupsOrder()-&gt;Add(m_wndReportCtrl.GetColumns()-&gt;GetAt(COLUMN_DEVSUBTYPE));</P><DIV></DIV><FONT size=2><P>m_wndReportCtrl.GetColumns()-&gt;GetAt(COLUMN_DEVTYPE)-&gt;SetVisible(FALSE);</P><P>m_wndReportCtrl.GetColumns()-&gt;GetAt(COLUMN_DEVSUBTYPE)-&gt;SetVisible(FALSE);</P></FONT></FONT></FONT></FONT></A>]]>
   </description>
   <pubDate>Tue, 31 Mar 2009 14:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13878&amp;PID=47388&amp;title=indent-problem#47388</guid>
  </item> 
 </channel>
</rss>