<?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 : in-place editing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : in-place editing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 05:36:21 +0000</pubDate>
  <lastBuildDate>Tue, 13 May 2008 02:20:59 +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=10607</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[in-place editing : OK, did it as below.  class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10607&amp;PID=35145&amp;title=inplace-editing#35145</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 10607<br /><strong>Posted:</strong> 13 May 2008 at 2:20am<br /><br />OK, did it as below.<DIV>&nbsp;</DIV><DIV>class SelectedEditableItem;</DIV><DIV>SelectedEditableItem* pLastClick = NULL;</DIV><DIV>class SelectedEditableItem : public CXTPReportRecordItemText<BR>{<BR>public:<BR>&nbsp;virtual void OnClick(XTP_REPORTRECORDITEM_CLICKARGS* pClickArgs)<BR>&nbsp;{<BR>&nbsp;&nbsp;if(pClickArgs-&gt;pRow-&gt;IsSelected() &amp;&amp; this == pLastClick)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;pClickArgs-&gt;pControl-&gt;EditItem(pClickArgs);</DIV><DIV>&nbsp;&nbsp;&nbsp;CPoint pt(pClickArgs-&gt;ptClient);<BR>&nbsp;&nbsp;&nbsp;pClickArgs-&gt;pControl-&gt;ClientToScreen(&amp;pt);</DIV><DIV>&nbsp;&nbsp;&nbsp;CXTPReportInplaceEdit* pEdit = DYNAMIC_DOWNCAST(CXTPReportInplaceEdit, CWnd::FromHandle(WindowFromPoint(pt)));<BR>&nbsp;&nbsp;&nbsp;if (pEdit &amp;&amp; pEdit-&gt;GetItem() == this)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPReportRecordItemEditOptions* pEditOptions = GetEditOptions(pClickArgs-&gt;pColumn);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;if (pEditOptions-&gt;m_bSelectTextOnEdit)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pEdit-&gt;SetSel(0, -1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DoMouseButtonClick();<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;pLastClick = this;</DIV><DIV>&nbsp;&nbsp;CXTPReportRecordItemText::OnClick(pClickArgs);<BR>&nbsp;}<BR>};<BR></DIV><DIV>&nbsp;</DIV><DIV>set control to not editable, and this overrides control behaviour.&nbsp; If you want an item to behave like this, use this class instead.</DIV>]]>
   </description>
   <pubDate>Tue, 13 May 2008 02:20:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10607&amp;PID=35145&amp;title=inplace-editing#35145</guid>
  </item> 
  <item>
   <title><![CDATA[in-place editing : Hi Currently the in-place editing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10607&amp;PID=35144&amp;title=inplace-editing#35144</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 10607<br /><strong>Posted:</strong> 13 May 2008 at 2:02am<br /><br /><P>Hi</P><P>Currently the in-place editing seems a bit odd.</P><P>There are 2 choices as far as I can see.</P><P>1. single click to edit.&nbsp; This isn't suitable for many purposes, e.g displaying a list of objects etc.</P><P>2. double-click to edit.&nbsp; This doesn't work sometimes either, e.g. if double click is to edit the object.</P><P>What I want is single click on selected row to edit cell.&nbsp; </P><P>This is the same behaviour as editing filenames in explorer - first you select, then you click on the label to edit it.&nbsp; It then allows you to select without editing (e.g. for preview), and double-click without editing cell.</P><P>What are my chances?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 13 May 2008 02:02:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10607&amp;PID=35144&amp;title=inplace-editing#35144</guid>
  </item> 
 </channel>
</rss>