<?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 : HOWTO: Emulate CBS_DROPDOWNLIST style</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : HOWTO: Emulate CBS_DROPDOWNLIST style]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 11:22:40 +0000</pubDate>
  <lastBuildDate>Mon, 08 Aug 2011 11:18:38 +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=18378</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[HOWTO: Emulate CBS_DROPDOWNLIST style : I achieved this thusly, inheriting...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=65812&amp;title=howto-emulate-cbs-dropdownlist-style#65812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6630">StuartB</a><br /><strong>Subject:</strong> 18378<br /><strong>Posted:</strong> 08 August 2011 at 11:18am<br /><br />I achieved this thusly, inheriting from CXTPReportRecordItemText:<br><br>void CMyReportRecordItem::OnBeginEdit (XTP_REPORTRECORDITEM_ARGS *pItemArgs)<br>{<br>&nbsp;&nbsp;&nbsp; CXTPReportRecordItemText::OnBeginEdit(pItemArgs);<br><br>&nbsp;&nbsp;&nbsp; CXTPReportControl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *pControl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = pItemArgs-&gt;pControl;<br>&nbsp;&nbsp;&nbsp; CXTPReportRecordItemEditOptions *pEditOptions&nbsp;&nbsp; = GetEditOptions(pItemArgs-&gt;pColumn);<br>&nbsp;&nbsp;&nbsp; CXTPReportInplaceButtons&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *pInpaceButtons = &amp;pEditOptions-&gt;arrInplaceButtons;<br><br>&nbsp;&nbsp;&nbsp; if (!pEditOptions-&gt;m_bAllowEdit &amp;&amp; pInpaceButtons-&gt;GetSize() &gt; 0)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportInplaceButton *pBtn = pInpaceButtons-&gt;GetAt(0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OnInplaceButtonDown(pBtn);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!pControl-&gt;IsEditOnClick())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pBtn-&gt;Activate();<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>I took the bulk of the code from ToolkitPro v15.0.02. I'm using v15.1.1 at the moment.<br><br>Did you, "add a dropdown style to the toolkit" ?]]>
   </description>
   <pubDate>Mon, 08 Aug 2011 11:18:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=65812&amp;title=howto-emulate-cbs-dropdownlist-style#65812</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Emulate CBS_DROPDOWNLIST style : Thanks Andre;I&amp;#039;ll try it......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64518&amp;title=howto-emulate-cbs-dropdownlist-style#64518</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18378<br /><strong>Posted:</strong> 21 May 2011 at 3:34am<br /><br />Thanks Andre;<br><br>I'll try it...<br>]]>
   </description>
   <pubDate>Sat, 21 May 2011 03:34:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64518&amp;title=howto-emulate-cbs-dropdownlist-style#64518</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Emulate CBS_DROPDOWNLIST style :  Hi,please set CXTPReportPain...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64517&amp;title=howto-emulate-cbs-dropdownlist-style#64517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 18378<br /><strong>Posted:</strong> 20 May 2011 at 8:45pm<br /><br />Hi,<br><br>please set CXTPReportPaintManager::m_bShowNonActiveInPlaceButton to TRUE and call AddComboButton(<b>TRUE</b>) to have the combo box inside the cell.<br><br>You also need to derive your own class from CXTPReportRecordItem.<br><br>void CMyReportRecordItem::OnBeginEdit(XTP_REPORTRECORDITEM_ARGS *pItemArgs)<br>{<br>&nbsp;&nbsp; CXTPReportRecordItem::OnBeginEdit(pItemArgs);<br><br>&nbsp;&nbsp; CXTPReportRecordItemEditOptions *pEditOptions = GetEditOptions(pItemArgs-&gt;pColumn);<br>&nbsp;&nbsp; pEditOptions-&gt;arrInplaceButtons.GetAt(0)-&gt;Activate();<br>}<br><br>You could also call CXTPReportInplaceButton::Activate() at an other event handler instead of deriving your own item class.<br><br>I'll add a dropdown style to the toolkit.<br><br>Andre<br><br>]]>
   </description>
   <pubDate>Fri, 20 May 2011 20:45:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64517&amp;title=howto-emulate-cbs-dropdownlist-style#64517</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Emulate CBS_DROPDOWNLIST style : Isn&amp;#039;t this possible?Can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64514&amp;title=howto-emulate-cbs-dropdownlist-style#64514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18378<br /><strong>Posted:</strong> 20 May 2011 at 6:55pm<br /><br />Isn't this possible?<br>Can't believe it!<br>]]>
   </description>
   <pubDate>Fri, 20 May 2011 18:55:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64514&amp;title=howto-emulate-cbs-dropdownlist-style#64514</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Emulate CBS_DROPDOWNLIST style : Hi;I&amp;#039;m trying to create a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64397&amp;title=howto-emulate-cbs-dropdownlist-style#64397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18378<br /><strong>Posted:</strong> 16 May 2011 at 8:41am<br /><br />Hi;<br><br>I'm trying to create a report item with constraint edit that behaves like standard combobox dropdownlist controls. So I want the item to open the dropdown list as soon as the user clicks into the item rectangle.<br>Setting EditOnClick(TRUE) shows the edit control with dropdown button but the list is not open.<br>I tried several setting but without success.<br>]]>
   </description>
   <pubDate>Mon, 16 May 2011 08:41:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18378&amp;PID=64397&amp;title=howto-emulate-cbs-dropdownlist-style#64397</guid>
  </item> 
 </channel>
</rss>