Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » Get enter key in EditString
Get enter key in EditString [message #24090] Sat, 26 December 2009 16:12 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

Is it possible to link the enter key to a CallBack in EditString ?.

The trick I have used is to derive a new class from EditString and get the enter key catching EditField::Key(). It works but I wanted to know if there is a more direct way.

Best regards
Koldo


Best regards
Iñaki
Re: Get enter key in EditString [message #24093 is a reply to message #24090] Sat, 26 December 2009 17:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Sat, 26 December 2009 10:12

Hello all

Is it possible to link the enter key to a CallBack in EditString ?.

The trick I have used is to derive a new class from EditString and get the enter key catching EditField::Key(). It works but I wanted to know if there is a more direct way.

Best regards
Koldo


No. But you might consider catching K_ENTER in your main window ::Key.

Mirek
Re: Get enter key in EditString [message #24098 is a reply to message #24093] Sat, 26 December 2009 21:25 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

Quote:

No. But you might consider catching K_ENTER in your main window ::Key.


I prefer to get ::Key in the control so that it has an autonomous behavior but anyway thanks Smile

Best regards
Koldo


Best regards
Iñaki
Previous Topic: String to double
Next Topic: WithDropChoice Serialization?
Goto Forum:
  


Current Time: Thu Mar 28 19:48:32 CET 2024

Total time taken to generate the page: 0.02314 seconds