View previous topic :: View next topic |
Author |
Message |
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Mon Mar 03, 2008 2:18 pm Post subject: howto register an Entry event |
|
|
Hi,
I have an Entry instance (an single line input field) and like to have a method called
when the Enter key is pressed.
Can someone give me an example to start with? |
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Mon Mar 03, 2008 2:32 pm Post subject: |
|
|
Code: | auto entry = new Entry();
entry.addOnActivate(&pressedEnter); |
does the trick. |
|
Back to top |
|
|
|