<?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 : [CLOSED] Set dropdown style for report items</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [CLOSED] Set dropdown style for report items]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 09:31:49 +0000</pubDate>
  <lastBuildDate>Mon, 26 Sep 2011 10:43: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=18984</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[[CLOSED] Set dropdown style for report items : Hello,please notice our support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18984&amp;PID=66430&amp;title=closed-set-dropdown-style-for-report-items#66430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18984<br /><strong>Posted:</strong> 26 September 2011 at 10:43am<br /><br />Hello,<br><br>please notice our support policy and open a support ticket for further help.<br><br><a href="http://forum.codejock.com/forum_posts.asp?TID=14125&amp;FID=125&amp;PR=3&amp;title=notice-codejock-support-policy" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=14125&amp;FID=125&amp;PR=3&amp;title=notice-codejock-support-policy</a><br><br>Thanks Andre<br><br>]]>
   </description>
   <pubDate>Mon, 26 Sep 2011 10:43:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18984&amp;PID=66430&amp;title=closed-set-dropdown-style-for-report-items#66430</guid>
  </item> 
  <item>
   <title><![CDATA[[CLOSED] Set dropdown style for report items :  Hi, i have report control with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18984&amp;PID=66426&amp;title=closed-set-dropdown-style-for-report-items#66426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4977">GRLEX</a><br /><strong>Subject:</strong> 18984<br /><strong>Posted:</strong> 26 September 2011 at 5:45am<br /><br />Hi, i have report control with my own items in it. Here my class for items<div><br></div><div>enum MyStatus {</div><div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>stString1,</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>stString2</div><div>};//------------------</div><div><br></div><div><div>class CMyItemClass : public CXTPReportRecordItem</div><div>{</div><div>public:</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>CMyItemClass(MyStatus &nbsp;status) {</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>m_status = status;</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>GetEditOptions(NULL)-&gt;AddConstraint(_T("Some string 1"),<span ="apple-tab-span"="" style="white-space:pre">	</span>stString1);</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>GetEditOptions(NULL)-&gt;AddConstraint(_T("Some string 2<span ="apple-style-span"="">"),<span ="apple-tab-span"="" style="white-space:pre">	</span>stString2);</span></div><div><span ="apple-style-span"=""><span ="apple-tab-span"="" style="white-space:pre">			</span>......</span></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>GetEditOptions(NULL)-&gt;m_bConstraintEdit = TRUE;</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>GetEditOptions(NULL)-&gt;AddComboButton(1);</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>}</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>CString GetCaption(CXTPReportColumn* /*pColumn*/) {</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>CXTPReportRecordItemConstraint * pConstraint = GetEditOptions(NULL)-&gt;FindConstraint(m_status);</div><div><br></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>if (pConstraint == NULL) {</div><div><span ="apple-tab-span"="" style="white-space:pre">			</span>return L"Default";</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>}</div><div><br></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>return pConstraint-&gt;m_strConstraint;</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>}</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>void SetCaption(LPCTSTR sCaption) {</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>CXTPReportRecordItemConstraint * pConstraint = GetEditOptions(NULL)-&gt;FindConstraint(sCaption);</div><div><br></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>if (pConstraint == NULL) {</div><div><span ="apple-style-span"=""><span ="apple-tab-span"="" style="white-space:pre">			</span>m_status = (</span>MyStatus<span ="apple-style-span"="">)0;</span></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>} else {</div><div><span ="apple-style-span"=""><span ="apple-tab-span"="" style="white-space:pre">			</span>m_status = (</span>MyStatus<span ="apple-style-span"="">)pConstraint-&gt;m_dwData;</span></div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>}</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>}</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>void OnConstraintChanged(XTP_REPORTRECORDITEM_ARGS* /*pItemArgs*/, CXTPReportRecordItemConstraint * pConstraint) {</div><div><span ="apple-style-span"=""><span ="apple-tab-span"="" style="white-space:pre">		</span>m_status = (</span>MyStatus<span ="apple-style-span"="">)pConstraint-&gt;m_dwData;</span></div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>}</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>MyStatus &nbsp;GetValue() {</div><div><span ="apple-tab-span"="" style="white-space:pre">		</span>return m_status;</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>}</div><div>protected:</div><div><span ="apple-tab-span"="" style="white-space:pre">	</span>MyStatus &nbsp;m_status;</div><div>};//---------------------------------------------------------</div></div><div><br></div><div>I need to do dropdown style for my item like in standart combobox&nbsp;CBS_DROPDOWNLIST ( selection in dropdown changes when mouse move)</div><div>How i can do this?</div></div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Mon, 26 Sep 2011 05:45:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18984&amp;PID=66426&amp;title=closed-set-dropdown-style-for-report-items#66426</guid>
  </item> 
 </channel>
</rss>