<?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 : CXTPPropertyGridInplaceEdit select all?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : CXTPPropertyGridInplaceEdit select all?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 04:27:47 +0000</pubDate>
  <lastBuildDate>Sun, 31 Jan 2010 16:03:28 +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=14494</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[CXTPPropertyGridInplaceEdit select all? : This has been solved through support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=56491&amp;title=cxtppropertygridinplaceedit-select-all#56491</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14494<br /><strong>Posted:</strong> 31 January 2010 at 4:03pm<br /><br />This has been solved through support (Mark Doubson). The way it can be done is like this:<br><br><pre wrap="">BOOL CXTPPropertyGridItem::OnLButtonDown(UINT nFlags, CPoint point)<br>{<br>	if ((m_nFlags &amp; xtpGridItemHasEdit) &amp;&amp; PtInValueRect(point))<br>	{<br>		mouse_event(GetSystemMetrics(SM_SWAPBUTTON) ? MOUSEEVENTF_RIGHTDOWN : MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);<br>		return FALSE; //dirty way to select all on one click<br>	}<br><br>	return TRUE;<br>}<br></pre>Also, to enable selection when you click on the left side of the item (the item name) or when you use the keyboard to navigate:<br><br><pre wrap="">LRESULT CPropertyGridDlg::OnGridNotify(WPARAM wParam, LPARAM lParam)<br>{<br>	if (wParam == XTP_PGN_SELECTION_CHANGED)<br>	{<br>		CXTPPropertyGridItem* pItem = (CXTPPropertyGridItem*)lParam;<br>		if (pItem)<br>		{<br>			if (pItem-&gt;IsKindOf(RUNTIME_CLASS(CXTPPropertyGridItemNumber)))<br>			{<br>				CXTPPropertyGridItemNumber* pItemNumber = (CXTPPropertyGridItemNumber*) pItem;<br>				if (pItemNumber-&gt;GetInplaceEdit().GetSafeHwnd() != NULL)<br>				{<br>					pItemNumber-&gt;GetInplaceEdit().SetSel(0, -1);<br>					pItemNumber-&gt;GetInplaceEdit().SetFocus();<br>				}<br>			}<br>		}<br>	}<br></pre><br>]]>
   </description>
   <pubDate>Sun, 31 Jan 2010 16:03:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=56491&amp;title=cxtppropertygridinplaceedit-select-all#56491</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridInplaceEdit select all? : I have the same issue - did you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=55632&amp;title=cxtppropertygridinplaceedit-select-all#55632</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=760">dennisV</a><br /><strong>Subject:</strong> 14494<br /><strong>Posted:</strong> 15 December 2009 at 1:42am<br /><br />I have the same issue - did you get it solved?<br><br>BTW, changing the style doesn't seem to work, at least like so:<br><br>((CXTPPropertyGridItem*)pItem)-&gt;SetEditStyle(WS_CHILD | ES_AUTOHSCROLL | ES_NOHIDESEL);<br>]]>
   </description>
   <pubDate>Tue, 15 Dec 2009 01:42:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=55632&amp;title=cxtppropertygridinplaceedit-select-all#55632</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridInplaceEdit select all? : Not sure if this will help (I&amp;#039;m...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=51649&amp;title=cxtppropertygridinplaceedit-select-all#51649</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14494<br /><strong>Posted:</strong> 06 August 2009 at 8:55am<br /><br />Not sure if this will help (I'm guessing now), but try changing the style of the edit control:<DIV>&nbsp;</DIV><DIV><DT><B><A name=ES_NOHIDESEL><B>ES_NOHIDESEL</B></A></B><DT>Negates the default behavior for an edit control. The default behavior hides the selection when the control loses the input focus and inverts the selection when the control receives the input focus. If you specify ES_NOHIDESEL, the selected text is inverted, even if the control does not have the focus.</DT></DIV>]]>
   </description>
   <pubDate>Thu, 06 Aug 2009 08:55:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=51649&amp;title=cxtppropertygridinplaceedit-select-all#51649</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropertyGridInplaceEdit select all? : Hello,We have a propertygrid that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=49805&amp;title=cxtppropertygridinplaceedit-select-all#49805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5313">cheez0r</a><br /><strong>Subject:</strong> 14494<br /><strong>Posted:</strong> 10 June 2009 at 2:08pm<br /><br />Hello,<br><br>We have a propertygrid that creates inplace edit items when you click on one of the fields to edit the text. This works all great and fine, except that when the user clicks on one of cells, they'd like it to automatically select all the text in the field for ease of editting, rather than having to manually select it themselves. Sounds simple enough...<br><br>But no matter where I"m putting the SetSel(0, -1), something later on is overridding that, and unhighlighting the text (I can even see it highlight the text if I put breakpoints right after my SetSel). I've been at it for a few days and can't figure out where in code it would undo this.<br><br>Any help?<br>]]>
   </description>
   <pubDate>Wed, 10 Jun 2009 14:08:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14494&amp;PID=49805&amp;title=cxtppropertygridinplaceedit-select-all#49805</guid>
  </item> 
 </channel>
</rss>