Perl: the Markov chain saw | |
PerlMonks |
Re: How do I recognize that the user has pressed enter inside a text box? Win32::GUI Questionby dree (Monsignor) |
on Jul 02, 2002 at 09:39 UTC ( [id://178809]=note: print w/replies, xml ) | Need Help?? |
You need the Class package that you have to associate with the RichEdit widget.
Then you can bind the KeyPress event. This code below works form me with Win32::GUI 0.502 but could have problems with more recent versions. I hope dada could give us a more complete answer :)
UPDATE: Above code works with RichEdit. If you want to recognize enter press on a Textfield, recent rumours on the Win32::GUI mailing list, point me to this:Thanks to John Rogers to show us the trick (with a little fix from me ;) )
In Section
Seekers of Perl Wisdom
|
|