<?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 : how to set focus to a field</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : how to set focus to a field]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 05:50:07 +0000</pubDate>
  <lastBuildDate>Fri, 13 Oct 2017 09:18:24 +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=23464</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[how to set focus to a field : It works,ThanksVaclav ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76215&amp;title=how-to-set-focus-to-a-field#76215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3268">vjedlicka</a><br /><strong>Subject:</strong> 23464<br /><strong>Posted:</strong> 13 October 2017 at 9:18am<br /><br />It works,<div>Thanks</div><div>Vaclav</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 13 Oct 2017 09:18:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76215&amp;title=how-to-set-focus-to-a-field#76215</guid>
  </item> 
  <item>
   <title><![CDATA[how to set focus to a field : Hello,You need call OnSelect()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76202&amp;title=how-to-set-focus-to-a-field#76202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23464<br /><strong>Posted:</strong> 11 October 2017 at 8:02am<br /><br />Hello,<br><br>You need call OnSelect() before&nbsp; SetFocusToInplaceControl(),<br><br>However OnSelect() is protected, you need to inherit&nbsp;CXTPPropertyGridItem and add method to public call this method.<table width="99%"><tr><td><pre class="BBcode">&nbsp; &nbsp; CXTPPropertyGridItem *l_pItem = m_wndPropertyGrid.FindItem(pt_IDS_PROP_WIRE_NAME);<div>&nbsp; &nbsp; if (l_pItem)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <b><font color="#00cc00">l_pItem-&gt;OnSelect();</font></b></div><div>&nbsp; &nbsp; &nbsp; &nbsp; l_pItem-&gt;SetFocusToInplaceControl();</div>&nbsp; &nbsp; }</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Wed, 11 Oct 2017 08:02:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76202&amp;title=how-to-set-focus-to-a-field#76202</guid>
  </item> 
  <item>
   <title><![CDATA[how to set focus to a field : How do I set focus to a text field...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76201&amp;title=how-to-set-focus-to-a-field#76201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3268">vjedlicka</a><br /><strong>Subject:</strong> 23464<br /><strong>Posted:</strong> 11 October 2017 at 5:43am<br /><br /><div>How do I set focus to a text field in a property grid?</div><div><br></div><div>This code does not work:</div><div><br></div><div><div><span style="white-space:pre">	</span>CXTPPropertyGridItem* l_pItem = m_wndPropertyGrid.FindItem(pt_IDS_PROP_WIRE_NAME);</div><div><span style="white-space:pre">	</span>if (l_pItem)</div><div><span style="white-space:pre">	</span>{</div><div><span style="white-space:pre">		</span>l_pItem-&gt;SetFocusToInplaceControl();</div><div><span style="white-space:pre">	</span>}</div></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 Oct 2017 05:43:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23464&amp;PID=76201&amp;title=how-to-set-focus-to-a-field#76201</guid>
  </item> 
 </channel>
</rss>