paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Problem deleting widget


From: Andrew Ford
Subject: Re: [paragui-users] Problem deleting widget
Date: Wed, 10 Jul 2002 14:19:41 -0700 (PDT)

It does indeed imply that the child is deleted with
the parent.  I'm not sure where it's documented, but
it's pretty fundamental to using paragui.  Another
thing it implies is that you use static widgets more
or less at your own risk, i.e. be careful with them.

Andrew.

--- Sven Hazejager <address@hidden> wrote:
> Andrew Ford wrote:
> > In general, a widget's children are deleted when
> the
> > parent is deleted.  Assigning a widget to be the
> child
> > of another widget tranfers ownership of the child
> > widget.  Does this make sense with regards to your
> > program?
> > 
> > Andrew.
> 
> Well, this is indeed interesting. But how is this
> parent-child relation 
> established? If I do something like this:
> 
> PG_Widget *parent = new PG_Widget(...);
> PG_Widget *child = new PG_Widget(parent, ...);
> 
> Does that mean that
> 
> delete parent;
> 
> Implies destruction of child? I wonder if this is
> documented somewhere...
> 
> Thanks,
> 
> Sven
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]