[Gambas-user] How do I delete a control on scrollview the correct way?

Ron Onstenk ronstk at ...239...
Wed Jun 7 08:57:59 CEST 2006


On Tuesday 06 June 2006 19:07, Benoit Minisini wrote:
> On Tuesday 06 June 2006 08:53, Ron Onstenk wrote:
> > on the forma  Scrollview1 as SVFrames
> >
--8<--
> >
> > I have only a workaround with the frame.enabled but this
> > should be imposible.
> >
> > Someone a tip what is wrong?
> >
> > Ron
> >
> >
> 
> Object deletion are deferred: they are executed later, at the return of the 
> event loop. I did that because Qt, and other toolkits, do not like deleting a 
> control anywhere (especially inside an event handler).
> 
> If you want to see the deletion immediately, you can add WAIT just after the 
> call to the Delete method.
> 
> Regards,
> 


LOL 
I did try it with WAIT a short time after sending the request.
The whole stuff was called from a button event
I had the popup menu in mind with a simular problem and add the wait.
It worked.
My idea was because it was gone on the screen it should have been gone.

But I thought it should with object.isValid() be not a valid object.?

Thank you

Ron





More information about the User mailing list