Octavian Rasnita wrote:
Ok, sorry. The solution was simple.

I just needed to add:

return 1;

at the end of the event handler function.

Which one? Would you be prepared to produce a small working example of what you've had to do (with, say, a multi-line textfield and a button) showing how to allow tab navigation between the 2 controls.

I spent the last hour trying to track down what I think is a bug, as by default you should be able to tab out of a multiline edit(textfield) control, and use ctrl-tab to insert a tab into the control; I can find example microsoft dialogs where this is the exact behaviour, but the behaviour I get from Win32::GUI is that tab does nothing and tab-ctrl inserts a tab (as expected). I'm sure we're not passing an event onto it's default handler correctly somewhere, but I can't find it, and I'd like to fix it.

Thanks,
Rob.

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/


Reply via email to