From: Kevin M. <kej...@ho...> - 2010-05-11 23:39:48
|
Waldemar, One reason for your controls disappearing might be that they don't have unique names. If you create a control with the same name as an existing control, the previous control is destroyed. A possible solution could be to keep a counter of the number of controls created which could be used to create unique names, example: my $Counter = 1; foreach(1..10){ $win->AddTextfield -name => "Textfield${Counter}", ); $Counter++; } foreach(1..10){ $win->AddLabel( -name => "Label${Counter}", ); $Counter++; } __END__ Hope this helps, Kevin. _________________________________________________________________ Need a new place to live? Find it on Domain.com.au http://clk.atdmt.com/NMN/go/157631292/direct/01/ |