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/