I've started to use Win32-GUI.

In the first stage I've created a simple window with 2 button: "Continue" and 
"Exit":

Use Win32::GUI;
$main=Win32::GUI::Window->new(-title=>'TEST',-name=>'Main',-width => 400, 
-height => 200);
$main->AddButton(-name=>'BOK',-text=>'Continue',-pos=>[50,100]);
$main->AddButton(-name=>'BEXIT',-text=>'Exit',-pos=>[150,100]);
$main->Show();
Win32::GUI::Dialog();
.....other code.....


If I click on "Exit", the program end.
If I click on "Continue" obviously the program continue.
In this case, I want work in the same window.
How can I destroy the 2 buttons ? 
Most general: How can destroy any controls so I can reuse the same window to 
put in it other controls ??


Reply via email to