<?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 : LButton click event in PropertyGrid</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : LButton click event in PropertyGrid]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 08:29:21 +0000</pubDate>
  <lastBuildDate>Thu, 15 Jan 2009 04:25:19 +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=13155</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[LButton click event in PropertyGrid : Hi,  See Samples\PropertyGrid\GridSample\CustomItems.cpp...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44589&amp;title=lbutton-click-event-in-propertygrid#44589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 15 January 2009 at 4:25am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>See Samples\PropertyGrid\GridSample\CustomItems.cpp&nbsp; file - it shows how create derived classes and custom items.</DIV>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 04:25:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44589&amp;title=lbutton-click-event-in-propertygrid#44589</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid : Hi, Oleg,I tried but failed. Could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44578&amp;title=lbutton-click-event-in-propertygrid#44578</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 15 January 2009 at 2:54am<br /><br />Hi, Oleg,<br><br>&nbsp;I tried but failed. Could you please give me some simple sample code?<br><br>Regards<br>Boyang<br>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 02:54:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44578&amp;title=lbutton-click-event-in-propertygrid#44578</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid : yes. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44573&amp;title=lbutton-click-event-in-propertygrid#44573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 15 January 2009 at 1:45am<br /><br />yes.]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 01:45:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44573&amp;title=lbutton-click-event-in-propertygrid#44573</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid :  Hi, Jimmy,Thank you for your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44571&amp;title=lbutton-click-event-in-propertygrid#44571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 14 January 2009 at 10:17pm<br /><br />Hi,&nbsp; Jimmy,<br><br>Thank you for your reply.<br><br>But when I modified the code as your suggestion, the compiler gave an error: &nbsp; C2660: “CCustomItemEnum::CCustomItemEnum”:&nbsp; Function can't accept two paramters.<br><br>I need give a constructor for that class?<br><br>Regards<br>Boyang <br><br>]]>
   </description>
   <pubDate>Wed, 14 Jan 2009 22:17:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44571&amp;title=lbutton-click-event-in-propertygrid#44571</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid : Hi,CCustomItemEnum* pItemLib =...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44544&amp;title=lbutton-click-event-in-propertygrid#44544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 14 January 2009 at 4:25am<br /><br />Hi,<br><br>CCustomItemEnum* pItemLib =(CCustomItemEnum*)(pPartLibraryItem-&gt;AddChildItem(new <b>CCustomItemEnum</b>(StringName,m_pSelectPart-&gt;m_strLibName)));//_T("Library")<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Wed, 14 Jan 2009 04:25:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44544&amp;title=lbutton-click-event-in-propertygrid#44544</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid :    Hi, Oleg:I create a sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44527&amp;title=lbutton-click-event-in-propertygrid#44527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 13 January 2009 at 10:26pm<br /><br />Hi, Oleg:<br><br>I create a sample class as following:<br><br>class CCustomItemEnum: public CXTPPropertyGridItemEnum<br>{<br>protected:<br>&nbsp;&nbsp;&nbsp; virtual BOOL OnLButtonDown(UINT nFlags, CPoint point) <br>&nbsp;&nbsp;&nbsp; { <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; AfxMessageBox(_T("Test here.")); <br>&nbsp;&nbsp;&nbsp; } <br>};<br><br>And insert this class as following:<br><br>CCustomItemEnum* pItemLib = (CCustomItemEnum*)(pPartLibraryItem-&gt;AddChildItem(new CXTPPropertyGridItem(StringName, m_pSelectPart-&gt;m_strLibName)));//_T("Library")<br><br>Also add some CXTPPropertyGridItemConstraint as following:<br><br>int i=1;<br>POSITION posLib = pDoc-&gt;m_board.m_liblist.GetHeadPosition();<br>while (posLib != NULL)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i++;<br>&nbsp;&nbsp;&nbsp; &nbsp; CLib* lib = (CLib*) pDoc-&gt;m_board.m_liblist.GetNext(posLib);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; if(lib-&gt;m_uLibType != pPart-&gt;m_uPartType) //heli0055<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; continue; //heli0055<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; if(lib-&gt;m_SubLibIndex&gt;0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPPropertyGridItemConstraint* temp = pItemLib-&gt;GetConstraints()-&gt;AddConstraint(lib-&gt;m_strName);<br>}<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemLib-&gt;SetFlags(xtpGridItemHasComboButton|xtpGridItemHasEdit);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pItemLib-&gt;SetEditStyle(ES_UPPERCASE); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPropertyGridItemConstraints* pList = pItemLib-&gt;GetConstraints();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pList-&gt;Sort();<br><br><br>Then, I click the gird item, the test dialog doesn't appear. What wrong?<br><br>Regards<br>Boyang<br>]]>
   </description>
   <pubDate>Tue, 13 Jan 2009 22:26:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44527&amp;title=lbutton-click-event-in-propertygrid#44527</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid : Hi, Create Custom Item derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44496&amp;title=lbutton-click-event-in-propertygrid#44496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 13 January 2009 at 6:20am<br /><br />Hi,<DIV><BR>Create Custom Item derived from CXTPPropertyGridItem and override its OnLButtonDown method.</DIV>]]>
   </description>
   <pubDate>Tue, 13 Jan 2009 06:20:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44496&amp;title=lbutton-click-event-in-propertygrid#44496</guid>
  </item> 
  <item>
   <title><![CDATA[LButton click event in PropertyGrid :  Hi, Propertygrid can handle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44489&amp;title=lbutton-click-event-in-propertygrid#44489</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3829">floydzhang</a><br /><strong>Subject:</strong> 13155<br /><strong>Posted:</strong> 13 January 2009 at 1:18am<br /><br />Hi, <br><br>Propertygrid can handle events XTP_PGN_SORTORDER_CHANGED, XTP_PGN_SELECTION_CHANGED,&nbsp; XTP_PGN_ITEMVALUE_CHANGED , XTP_PGN_REQUESTEDIT......<br><br>But I can't see how to handle mouse LButtonClk, not LButtonDBClk. I want to implement a function that when user mouse lbutton single clicks propertygrid item, the app will pop up a dialog, when user click the grid item again, the dialog will be closed. How to do that? I tried XTP_PGN_SELECTION_CHANGED, but it's not I want.<br><br>Thanks!<br><br>Regards<br>Boyang<br>]]>
   </description>
   <pubDate>Tue, 13 Jan 2009 01:18:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13155&amp;PID=44489&amp;title=lbutton-click-event-in-propertygrid#44489</guid>
  </item> 
 </channel>
</rss>