[perl-win32-gui-users] Win32::GUI dialog doesn't close

2006-10-04 Thread Octavian Rasnita
Hi, I have create a program using Win32::GUI and perlapp. I have made the main window a dialog window for making it usable with a keyboard, so if I press the escape key, the program closes. Well, this is pretty ok, but the problem is that perl interpreter doesn't always close, and after closing

Re: [perl-win32-gui-users] Win32::GUI dialog doesn't close

2006-10-04 Thread Jamal Mazrui
Hi Teddy, I've experienced a similar problem, which was solved by code like the following: Win32::GUI::Dialog(); $Dlg-DESTROY(); In other words, call the Destroy method of the dialog object after the GUI event loop terminates, thus ensuring that Perl completely releases the dialog resources.

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI dialog doesn't close

2006-10-04 Thread Robert May
Octavian Rasnita wrote: I have made the main window a dialog window for making it usable with a keyboard, so if I press the escape key, the program closes. Well, this is pretty ok, but the problem is that perl interpreter doesn't always close, and after closing the program that way, I can see

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI dialog doesn't close

2006-10-04 Thread Octavian Rasnita
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

Re: [perl-win32-gui-users] [win32-gui] Win32::GUI dialog doesn'tclose

2006-10-04 Thread Jamal Mazrui
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

Re: [perl-win32-gui-users] TreeView Drag and Drop Issues

2006-10-04 Thread Jason P
Umm, I know it's back there a bit, but you will find postings from myself and Rob on this issue. There are even examples in the Win32::GUI package for dragndrop operations. If you can't locate it, let us know and I will dig up the files from my own archives ( I have it somewhere) Regards,