<?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 : Record &amp; Item Capabilities</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Record &amp; Item Capabilities]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 23:38:38 +0000</pubDate>
  <lastBuildDate>Fri, 14 Oct 2005 23:55:32 +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=2984</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[Record &amp; Item Capabilities : Sorry, since I tried so many different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=9054&amp;title=record-item-capabilities#9054</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1473">mehran20</a><br /><strong>Subject:</strong> 2984<br /><strong>Posted:</strong> 14 October 2005 at 11:55pm<br /><br /><P>Sorry, since I tried so many different ways it seems I sent a wrong code. I had to define the myReportRow class like this:</P><P><table width="99%"><tr><td><pre class="BBcode"><font color=BLUE><BR>class myReportRow : public CXTPReportRow {<BR>public:<BR>&nbsp;myReportRow() : CXTPReportRow() { }<BR>&nbsp;virtual ~myReportRow() { }<BR>&nbsp;virtual int GetHeight(CDC* pDC) {<BR>&nbsp;&nbsp;return m_nIndex * 20 + 10;<BR>&nbsp;}<BR>};<BR></font></pre></td></tr></table></P>]]>
   </description>
   <pubDate>Fri, 14 Oct 2005 23:55:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=9054&amp;title=record-item-capabilities#9054</guid>
  </item> 
  <item>
   <title><![CDATA[Record &amp; Item Capabilities : Well I wanted to keep this question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=9052&amp;title=record-item-capabilities#9052</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1473">mehran20</a><br /><strong>Subject:</strong> 2984<br /><strong>Posted:</strong> 14 October 2005 at 11:26pm<br /><br /><P>Well I wanted to keep this question going long before but this forum was closed for a week!!</P><P>By this time&nbsp;I tried so much to work with CXTPReportRow but I failed and since I could find no practical example and there was nothing in the CHM reference&nbsp;file either, the only way left was to ask for it. Please take a look at my code below:</P><P><table width="99%"><tr><td><pre class="BBcode"><font color=BLUE><BR><BR>class ReportItemCheck : public CXTPReportRecordItem<BR>{<BR>public:<BR>&nbsp;ReportItemCheck(BOOL bCheck) {<BR>&nbsp;&nbsp;HasCheckbox(TRUE);<BR>&nbsp;&nbsp;SetChecked(bCheck);<BR>&nbsp;}<BR>&nbsp;virtual int GetGroupCaptionID(CXTPReportColumn* pColumn) {<BR>&nbsp;&nbsp;return IsChecked()? 0: 1;<BR>&nbsp;}<BR>&nbsp;virtual int Compare(CXTPReportColumn* pColumn, CXTPReportRecordItem* pItem) {<BR>&nbsp;&nbsp;return int(IsChecked()) - int(pItem-&gt;IsChecked());<BR>&nbsp;}<BR>};</P><P>class myReportRow : public CXTPReportGroupRow {<BR>public:<BR>&nbsp;myReportRow() : CXTPReportGroupRow() { }<BR>&nbsp;virtual ~myReportRow() { }<BR>&nbsp;virtual int GetHeight(CDC* pDC) {<BR>&nbsp;&nbsp;return m_nIndex * 20 + 10;<BR>&nbsp;}<BR>};</P><P>class myReportCtrl : public CXTPReportControl {<BR>public:<BR>&nbsp;myReportCtrl() : CXTPReportControl() { }<BR>&nbsp;virtual ~myReportCtrl() { }<BR>&nbsp;int InsertRow(int nIndex, CXTPReportRow* pRow) {<BR>&nbsp;&nbsp;return CXTPReportControl::InsertRow(nIndex, pRow);<BR>&nbsp;}<BR>};</P><P><BR> //////////////////////////////////////////////////////////// ////////////<BR>/// Somewhere in OnInitDialog<BR> //////////////////////////////////////////////////////////// ////////////<BR>{<BR>&nbsp;...<BR>&nbsp;...<BR>&nbsp;...</P><P>&nbsp;reportCtrl = new myReportCtrl();<BR> &nbsp;reportCtrl-&gt;Create(WS_CHILD|WS_TABSTOP|WS_VISIBLE|W M_VSCROLL|WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_TABSTOP,  CRect(0, 0, 400, 250), this, 0);<BR> &nbsp;reportCtrl-&gt;GetReportHeader()-&gt;AllowColumnRemove (FALSE);</P><P>&nbsp;CXTPReportColumn* nameColumn = new CXTPReportColumn(0, TEXT("Name"), 250, TRUE, XTP_REPORT_NOICON, FALSE);<BR>&nbsp;reportCtrl-&gt;AddColumn(nameColumn);<BR>&nbsp;CXTPReportColumn* checkColumn = new CXTPReportColumn(1, TEXT("Check"), 18, FALSE, XTP_REPORT_NOICON, FALSE);<BR>&nbsp;reportCtrl-&gt;AddColumn(checkColumn);</P><P>&nbsp;myReportRow* row;<BR>&nbsp;CXTPReportRecord* record;<BR>&nbsp;CXTPReportRecord* record1;<BR>&nbsp;CXTPReportRecordItem* item;</P><P>&nbsp;record = new CXTPReportRecord();<BR>&nbsp;record-&gt;AddItem(new CXTPReportRecordItemText(TEXT("John")));<BR>&nbsp;record-&gt;AddItem(new ReportItemCheck(true));<BR>&nbsp;row = new myReportRow();<BR>&nbsp;row-&gt;InitRow(reportCtrl, record);<BR>&nbsp;reportCtrl-&gt;InsertRow(0, row);</P><P>&nbsp;record = new CXTPReportRecord();<BR>&nbsp;record-&gt;AddItem(new CXTPReportRecordItemText(TEXT("Joe")));<BR>&nbsp;record-&gt;AddItem(new ReportItemCheck(false));<BR>&nbsp;row = new myReportRow();<BR>&nbsp;row-&gt;InitRow(reportCtrl, record);<BR>&nbsp;reportCtrl-&gt;InsertRow(1, row);</P><P>&nbsp;record1 = new CXTPReportRecord();<BR>&nbsp;record1-&gt;AddItem(new CXTPReportRecordItemText(TEXT("Jason (Joe's son)")));<BR>&nbsp;record1-&gt;AddItem(new ReportItemCheck(true));<BR>&nbsp;row = new myReportRow();<BR>&nbsp;row-&gt;InitRow(reportCtrl, record1);<BR>&nbsp;record-&gt;GetChilds()-&gt;Add(record1);<BR>&nbsp;reportCtrl-&gt;InsertRow(2, row);</P><P>&nbsp;// At This Point I can see that 'rows' is filled with<BR>&nbsp;//&nbsp; the rows I have inserted, but nothing to show yet!!<BR>&nbsp;CXTPReportRows* rows = reportCtrl-&gt;GetRows();</P><P> &nbsp;reportCtrl-&gt;GetColumns()-&gt;Find(0)-&gt;SetTreeCol umn(TRUE);<BR>&nbsp;reportCtrl-&gt;Populate();</P><P>&nbsp;...<BR>&nbsp;...<BR>&nbsp;...<BR>}<BR></font></pre></td></tr></table></P><P>I put a break point in myReportRow::GetHeight method to see if it's called, but it didn't, not at all. More important it did not show any item in the Report Control!! It says, there's no Item to show!!</P><P>Would you please tell me how can I make use of CXTReportRow objects?!</P><P>Thanks,</P><P>Mehran Ziadloo</P>]]>
   </description>
   <pubDate>Fri, 14 Oct 2005 23:26:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=9052&amp;title=record-item-capabilities#9052</guid>
  </item> 
  <item>
   <title><![CDATA[Record &amp; Item Capabilities : Mehran,  Yes you can. But in this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=8928&amp;title=record-item-capabilities#8928</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 2984<br /><strong>Posted:</strong> 03 October 2005 at 8:52am<br /><br />Mehran,<br /><br />Yes you can. But in this case you should manually implement overrides of some more methods, i.e. which return a Row height, etc.<br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Mon, 03 Oct 2005 08:52:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=8928&amp;title=record-item-capabilities#8928</guid>
  </item> 
  <item>
   <title><![CDATA[Record &amp; Item Capabilities : Hi, I have just started working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=8902&amp;title=record-item-capabilities#8902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1473">mehran20</a><br /><strong>Subject:</strong> 2984<br /><strong>Posted:</strong> 01 October 2005 at 4:40am<br /><br /><P>Hi,</P><P>I have just started working with <FONT size=2>CXTPReportControl and I was wondering if I can draw anything I want in a <FONT size=2>CXTPReportRecordItem driven object!</FONT></FONT></P><P><FONT size=2><FONT size=2>For example,an icon bigger than 16*16?</P></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 01 Oct 2005 04:40:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2984&amp;PID=8902&amp;title=record-item-capabilities#8902</guid>
  </item> 
 </channel>
</rss>