Carol,
In the KeyPress sub for the richedit you need to check if enter (ascii 13)
has been pressed. Something like
sub RichEdit_KeyPress {
my($key) = @_;
if ($key == 13) then {
# Enter key pressed
} else {
# some other key
}
}
should do it if your rich edit control is called RichEdit.
Kev.
Carolyyne Courtney <[EMAIL PROTECTED]>@lists.sourceforge.net on
13/06/2001 06:48:05
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: [email protected]
cc:
Subject: [perl-win32-gui-users] Capturing 'enter key' with Richedit
Hi,
Is there any way that I can capture the 'enter key' when entering text
using
Richedit.
What I am am trying to do is:
The user types in a line of text and then hits enter.
At this point the text is evaluated in a sub routine and a response printed
in the Richedit box.
The user then enters the next line of text ..
Thanks!
Carol.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
Perl-Win32-GUI-Users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users