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/
------------------------------------------------------------------------------

_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to