I have read that if the event handler returns -1, the program terminates (I
knew that), but I also found that if it returns 0 the event will be stopped
and if it returns 1, it will be passed further.
Teddy
----- Original Message -----
From: "Plum, Jason" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, December 29, 2005 17:02 PM
Subject: RE: [perl-win32-gui-users] multiline Textfield
Would you plz share the resolution with the group?
It helps when people search the archive looking for an answer toa
problem they are having and actually find it :p
Jason P.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Octavian Rasnita
Sent: Thursday, December 29, 2005 6:36 AM
To: Octavian Rasnita; perl-win32-gui-users@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] multiline Textfield
Ok, I have finally solved the problem.
Teddy
----- Original Message -----
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Thursday, December 29, 2005 12:57 PM
Subject: [perl-win32-gui-users] multiline Textfield
Hi,
I am trying to create a multiline textfield on a window that has
the -dialogui option set but the big problem is that I cannot move the
focus
out of that window by pressing the tab key.
I have tried to use the onKeyDown, onKeyUp, onChar events and
GetKeyboardState method to trap the tab and shift+tab key, and when
those
key are pressed, the focus is passed to the next or prior control from
the
window as it should.
The problem is that if another key is pressed in the multiline
textfield
(the home key, page up, down, end, the arrow keys, the letters...)
nothing
happends.
When an event like onKeyDown traps a keystroke, if that key pressed is
a
letter or an arrow key, the function that handles the event doesn't do
anything with the key, but I want that letter to be printed on the
textfield.
I am able to do a $Win->Textfield->ReplaceSel(chr($key)) but it works
only
if the key is a letter, but it doesn't work if it is a arrow, or home,
end,
etc.
Is there a solution for doing what I want?
Thank you.
Teddy
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/