<?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 : SetIconIndex for CXTPReportRecordItemPreview</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : SetIconIndex for CXTPReportRecordItemPreview]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 21:38:05 +0000</pubDate>
  <lastBuildDate>Thu, 12 Apr 2007 08:28:40 +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=6689</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[SetIconIndex for CXTPReportRecordItemPreview : Hi. Ok, i find my problem.  The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21875&amp;title=seticonindex-for-cxtpreportrecorditempreview#21875</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 6689<br /><strong>Posted:</strong> 12 April 2007 at 8:28am<br /><br />Hi.<DIV>Ok, i find my problem. </DIV><DIV>The PreviewHeight was to low.</DIV><DIV>This was the reason, why the Bitmap didn't show.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>FSauer</DIV>]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 08:28:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21875&amp;title=seticonindex-for-cxtpreportrecorditempreview#21875</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconIndex for CXTPReportRecordItemPreview : ? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21873&amp;title=seticonindex-for-cxtpreportrecorditempreview#21873</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 6689<br /><strong>Posted:</strong> 12 April 2007 at 7:45am<br /><br />?]]>
   </description>
   <pubDate>Thu, 12 Apr 2007 07:45:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21873&amp;title=seticonindex-for-cxtpreportrecorditempreview#21873</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconIndex for CXTPReportRecordItemPreview : Hi Serge.  I test it too. But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21489&amp;title=seticonindex-for-cxtpreportrecorditempreview#21489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 6689<br /><strong>Posted:</strong> 27 March 2007 at 5:20am<br /><br />Hi Serge.<DIV>&nbsp;</DIV><DIV>I test it too. But my result is, that the icon isn't set for my Preview-Item.</DIV><DIV>&nbsp;</DIV><DIV>Are&nbsp;in the following lines anything wrong, or have i forget anything?</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006633>//Add ImageList</FONT></DIV><DIV>&nbsp;if (!m_ilIcons.Create(16,16, ILC_COLOR24|ILC_MASK, 0, 1))<BR>&nbsp;&nbsp;return FALSE;</DIV><DIV>&nbsp;CBitmap bitmap;<BR>&nbsp;VERIFY(bitmap.LoadBitmap(IDB_BITMAP1));<BR>&nbsp;m_ilIcons.Add(&amp;bitmap, RGB(255, 255, 255));</DIV><DIV>&nbsp;m_wndReportCtrl.SetImageList(&amp;m_ilIcons);</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006633>//Add Columns</FONT></DIV><DIV>&nbsp;m_wndReportCtrl.AddColumn(new CXTPReportColumn(COLUMN_IO,&nbsp;&nbsp;&nbsp;_T("First Column"), 18));<BR>&nbsp;m_wndReportCtrl.AddColumn(new CXTPReportColumn(COLUMN_IOE,&nbsp;&nbsp;&nbsp;_T("Second Column"), 18));</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006633>//Enable Previewmode</FONT></DIV><DIV>&nbsp;m_wndReportCtrl.EnablePreviewMode(TRUE);</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006633>//Add my Records</FONT></DIV><DIV>&nbsp;m_wndReportCtrl.AddRecord( new CMessageRecord("1111111111111","2222222222222","Preview"));<BR>&nbsp;m_wndReportCtrl.AddRecord( new CMessageRecord("1111111111111","2222222222222","Preview"));<BR>&nbsp;m_wndReportCtrl.AddRecord( new CMessageRecord("1111111111111","2222222222222","Preview"));</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006633>&nbsp;//The following Line doesn't work!</FONT><BR>&nbsp;((CXTPReportRecordItem*)(m_wndReportCtrl.GetRecords()-&gt;GetAt(1)-&gt;GetItemPreview()))-&gt;SetIconIndex(1);</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff><FONT color=#006600>&nbsp;//This following Line work!</FONT><BR></FONT>&nbsp;((CXTPReportRecordItem*)(m_wndReportCtrl.GetRecords()-&gt;GetAt(1)-&gt;GetItem(1)))-&gt;SetIconIndex(1);</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006600>&nbsp;//Populate</FONT></DIV><DIV>&nbsp;m_wndReportCtrl.Populate();</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#006600>&nbsp;//My ReportRecordClass</FONT></DIV><DIV>class CMessageRecord : public CXTPReportRecord<BR>{<BR>public:<BR>&nbsp;CMessageRecord(&nbsp;CString Column1, CString Column2, CString Preview)<BR>&nbsp;{<BR>&nbsp;&nbsp;AddItem(new CXTPReportRecordItemText(Column1));<BR>&nbsp;&nbsp;AddItem(new CXTPReportRecordItemText(Column2));<BR>&nbsp;&nbsp;SetPreviewItem(new CXTPReportRecordItemPreview(Preview));<BR>&nbsp;}<BR>};</DIV><DIV>&nbsp;</DIV><DIV>The result looks like this:</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20070327_051155_Attachment.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>FSauer&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 05:20:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21489&amp;title=seticonindex-for-cxtpreportrecorditempreview#21489</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconIndex for CXTPReportRecordItemPreview : Yes, this is possible. Why not,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21368&amp;title=seticonindex-for-cxtpreportrecorditempreview#21368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6689<br /><strong>Posted:</strong> 22 March 2007 at 5:43pm<br /><br />Yes, this is possible. Why not, Preview Item is also an item...<br><br>For example I've just tested it with the following string added into the initialization if a regular sample:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; ((CXTPReportRecordItem*)(wndReport.GetRecords()-&gt;GetAt(4)-&gt;GetItemPreview()))-&gt;SetIconIndex(8);<br><br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 22 Mar 2007 17:43:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21368&amp;title=seticonindex-for-cxtpreportrecorditempreview#21368</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconIndex for CXTPReportRecordItemPreview : Hi is it possible to set an Icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21315&amp;title=seticonindex-for-cxtpreportrecorditempreview#21315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 6689<br /><strong>Posted:</strong> 21 March 2007 at 5:12am<br /><br />Hi is it possible to set an Icon for a CXTPReportRecordItemPreview with <DIV><FONT color=#0033ff>int CXTPReportRecordItem::SetIconIndex(ImagListIndex);<FONT color=#000000>?</FONT></FONT></DIV><DIV><FONT color=#0033ff><FONT color=#000000>Or have i do this in my own Preview-Class?</FONT></FONT></DIV><DIV><FONT color=#0033ff><FONT color=#000000></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0033ff><FONT color=#000000>Regards</FONT></FONT></DIV><DIV><FONT color=#0033ff><FONT color=#000000>FSauer</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Wed, 21 Mar 2007 05:12:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6689&amp;PID=21315&amp;title=seticonindex-for-cxtpreportrecorditempreview#21315</guid>
  </item> 
 </channel>
</rss>