<?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 : CXTPControlComboBox execute in OnKillFocus problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPControlComboBox execute in OnKillFocus problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 23:28:56 +0000</pubDate>
  <lastBuildDate>Fri, 15 May 2009 03:14:52 +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=14276</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[CXTPControlComboBox execute in OnKillFocus problem : What happens if you swap the two...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14276&amp;PID=49018&amp;title=cxtpcontrolcombobox-execute-in-onkillfocus-problem#49018</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14276<br /><strong>Posted:</strong> 15 May 2009 at 3:14am<br /><br />What happens if you swap the two calls? E.g. CXTPControlComboBox::OnKillFocus() <EM>before</EM> OnExecute().<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Another solution would be this:</DIV><DIV>&nbsp;</DIV><DIV>void RegionNameComboBox::OnKillFocus()<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPControlComboBox::OnKillFocus();</DIV><DIV>&nbsp;&nbsp;&nbsp; PostMessage(WM_COMMAND, ID_EXECUTE);<BR>}<BR></DIV><DIV>That should do it.</DIV>]]>
   </description>
   <pubDate>Fri, 15 May 2009 03:14:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14276&amp;PID=49018&amp;title=cxtpcontrolcombobox-execute-in-onkillfocus-problem#49018</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlComboBox execute in OnKillFocus problem : We have a CXTPControlComboBox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14276&amp;PID=48906&amp;title=cxtpcontrolcombobox-execute-in-onkillfocus-problem#48906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4008">xafier</a><br /><strong>Subject:</strong> 14276<br /><strong>Posted:</strong> 12 May 2009 at 11:15am<br /><br />We have a CXTPControlComboBox on our ribbon that needs to perform an execute when it loses focus.<br><br>To do this I tried the following (RegionNameComboBox inherits from CXTPControlComboBox)<br><br>void RegionNameComboBox::OnKillFocus()<br>{<br>&nbsp;&nbsp;&nbsp; OnExecute();<br>&nbsp;&nbsp;&nbsp; CXTPControlComboBox::OnKillFocus();<br>}<br><br>The message fired by OnExecute is handled in our View class so this would now handle if the user presses enter or clicks off.<br><br>Unfortunately this has undesirable effects, as if the user clicks off the combobox edit onto the "Ribbon Home button" (the circle button) then the ribbon home button then gets stuck and locked and no longer works.<br><br>I am wondering what is the best way of implementing forcing an execute when losing focus which will not break the ribbon?<br>]]>
   </description>
   <pubDate>Tue, 12 May 2009 11:15:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14276&amp;PID=48906&amp;title=cxtpcontrolcombobox-execute-in-onkillfocus-problem#48906</guid>
  </item> 
 </channel>
</rss>