Rob may have a better solution, but in case it's helpful, this technique
worked for me.  Set Escape as an accelerator key that terminates the
dialog, e.g., by defining an accelerator table as follows:

my $Keyboard = Win32::GUI::AcceleratorTable->new(Escape => sub {return
-1;});

Then, include 
-accel => $Keyboard
in the method that creates the dialog window.

Jamal

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Octavian Rasnita
Sent: Wednesday, October 04, 2006 4:17 PM
To: Robert May
Cc: perl-win32-gui-users@lists.sourceforge.net
Subject: Re: [perl-win32-gui-users] [win32-gui] Win32::GUI dialog
doesn'tclose


From: "Robert May" <[EMAIL PROTECTED]>

> Do you have a multi-line edit control (Win32::GUI::Textfield) in the
> dialog?  Does this symptom only occur when the textfield has focus?
>
> If so it's a known bug - I can generate a work around, let me know.

Hmm, strange! I was almost sure that this issue happends randomly, no
matter
if that multiline control has the focus or not.
(The program do has a multiline readonly textfield)

But I have tested for a few times, and I see that this error appears
only
when that control has the focus.

Please tell me how to solve it.

Thank you very much.

Teddy


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
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