Joshua Higgins ha scritto:
> If I use
>
> windowpanel = New Panel(FMain) As "TaskPanel"
>
> many times to create loads of panels, how do I destroy all of them? Using
> windowpanel.delete only destroys the last one created.
>
>   
You have to remember all of them (using an array, for example), or use 
the "last" in a event handler to kill the one who received the event, or 
cycle through them using FMain.children().
Every time you execute the above instruciotn, the variable windowpanel 
looses its previous content, so you "forget" the last panel.




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to