Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Enter key in CExtComboBox Collapse All
Subject Author Date
Thomas Maurer Oct 26, 2005 - 8:22 AM

Hello


I would like to be notified when the user presses the Enter key in the text box of CExtComboBox (or in CExtComboEditCtrlHook respectively). How can I do that?


Thank you


 


Thomas

Technical Support Oct 26, 2005 - 12:05 PM

First of all, please download the updated version of the CExtComboBox class, which is now derived from the new CExtComboBoxBase class. Create a CExtComboBox class and implement the CExtComboBoxBase::OnQueryInnerEditCtrl() virtual method in it. The method should be similar to the original one but return your own CExtComboEditCtrlHook-derived class instance. In your editor, implement the keyboard input handling like you need.

Thomas Maurer Oct 27, 2005 - 4:45 AM

Thank you for the information.


I took a quick look and I have the feeling that I would have to implement OnSubclassInnerEdit as well. Am I right?


Thomas


 

Technical Support Oct 27, 2005 - 1:02 PM

You’re absolutely right. Sorry, we forgot about this.