RE: [perl-win32-gui-users] terminating popup window

2002-04-10 Thread Rogers, John
Hi, If its a gui loft window _Terminate (clicking X)will return -1 by default, thus destroying your window object. override it by adding return 0; to the Window2 _Terminate sub eg sub Window2_Terminate { $Window2->Hide(); return 0; } JohnR > -Original Message- > From: [EMA

[perl-win32-gui-users] terminating popup window

2002-04-10 Thread markd
hi. i've got a weird problem with my popup window. if i close it by clicking on the x the window closes fine but if i click on the button to open it again, it won't open. however if i click on save and exit in the popup window, when i click on the button the open the window again it works fine. any

Re: [perl-win32-gui-users] popup window

2002-04-10 Thread Kevin . ADM-Gibbs
Make the second window a dialog window and use the -parent option when you create it Example code below. Cheers, Kev. use Win32::GUI; $Win = new Win32::GUI::Window( -left => 341, -top=> 218, -width => 300, -height => 300, -name => "Win", -text =>

RE: [perl-win32-gui-users] popup window

2002-04-10 Thread Rogers, John
Mark, just dont show it untill your ready, read the docs about $windowobject->Show() and $windowobject->Hide(); JohnR > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] > Sent: Wednesday, April 10, 2002 5:01 PM > To: perl-win32-gui-users@lists.sourceforge.net > Subject

Re: [perl-win32-gui-users] popup window

2002-04-10 Thread Johan Lindstrom
At 07:01 2002-04-10 +, [EMAIL PROTECTED] wrote: hi. is there any way of stopping a second window from creating an instance of itself in the taskbar? Use the -parent => $yourparentwindow, option when creating the popup window. /J -- --- -- -- -- -- - -

[perl-win32-gui-users] popup window

2002-04-10 Thread markd
hi. is there any way of stopping a second window from creating an instance of itself in the taskbar? thanx