From: Geoffrey S. <geo...@gm...> - 2007-07-06 12:28:14
|
Maxmelbin, You simply need to return -1, the same as in your Main_Terminate function. On 7/6/07, Maxmelbin Neson (RBIN/EMT1) <Max...@in...> 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 > max...@in... > 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 > Per...@li... > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users > http://perl-win32-gui.sourceforge.net/ > -- Geoffrey Spear http://www.geoffreyspear.com/ |