Maxmelbin,
You simply need to return -1, the same as in your Main_Terminate function.
On 7/6/07, Maxmelbin Neson (RBIN/EMT1) <[EMAIL PROTECTED]> wrote:
Hello ,
I have a button CANCEL which should close the window .. How to do it ? What
is the method
My code ..
use Win32::GUI;
use Win32::GUI::GridLayout;
$main = Win32::GUI::DialogBox->new(-name => 'Main',
-text => 'Perl Win32 GUI',
-width => 550,
-height => 650,
-maximizebox => 0,
$main->AddButton(
-name => "cancel",
-width=>110,
-height=>27,
-left => 360,
-top =>580,
-text=>"CANCEL",
);
$main->Show();
Win32::GUI::Dialog();
sub Main_Terminate {
-1;
}
sub cancel_Click {
?????
}
Thanks and Regards
Maxmelbin Neson
-----------------------------------------------------------------------------------------------------------------
Robert Bosch India Limited
Engineering Services - DS - Methods and Tools (RBIN/EMT1)
123 Industrial Layout - Hosur Road - Bangalore 560 095 - INDIA
Telephone: +91 80 6657-4532 Fax: +91 80 6657-1404
[EMAIL PROTECTED]
www.bosch.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Perl-Win32-GUI-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/
--
Geoffrey Spear
http://www.geoffreyspear.com/