rmflow has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Win32::GUI(); my $main = Win32::GUI::Window->new(-name => 'Main', -text => 'Perl', -width => 200, -height => 200); $main->AddLabel(-name => "Label", -text => "Hello, world", -left => 20 +, -top => 20, -notify => 1); sub Label_Click { for (1..1000) { Win32::GUI::DestroyWindow($main->{"Label"}{-handle}); delete $main->{"Label"}; $main->AddLabel(-name => "Label", -text => rand(), -left => 20 +, -top => 20, -notify => 1); } } $main->Show(); Win32::GUI::Dialog(); sub Main_Terminate { -1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GUI::DestroyWindow problem
by rpnoble419 (Pilgrim) on Dec 22, 2009 at 20:56 UTC |