Re: Removing managed widgets



En/na Murray Cumming ha escrit:
On Wed, 2008-03-26 at 19:05 +0100, Joaquim Duran wrote:
En/na Joaquim Duran ha escrit:
En/na Murray Cumming ha escrit:
On Wed, 2008-03-26 at 17:30 +0100, Joaquim Duran wrote:
Dear all,

Is it possible to delete a managed widget from its parent, when it is needed?
Yes. The parent container will cope with this.

Thanks

But,... I need to create dynamically some widgets (they are managed), but also, based in input information, I need to remove them and create new ones, if possible with no removing the container.

I don't understand this sentence. Please rephrase.

In this situation, is possible to remove them?


Chapter 22, of the gtkmm book has provided the answer (In fact, I was asking for section 'Dynamic allocation with new and delete').

What I see is that if a dynamic widget is managed by container then never should be manager by the user.

Joaquim Duran
Moltes gràcies



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