Re: keeping removed widget





Guillaume Joutel wrote:
> 
> gafferuk a écrit :
>> hi, for example i have a vbox and a button.
>>
>> heres the code:
>>
>> Gtk::VBox *box = new Gtk::VBox();
>> Gtk::Button *button - new Gtk::Button();
>>
>> box->add(*button);
>>
>>
>> later on i wish to remove this button but i wish to keep it to be used
>> later
>> on.
>> if i simple goes box->remove(*button) my app simply crashes.
>>
>> what am i doing wrong?
>>
>> thanks.
>>   
> And why not just trying something like
> bouton->hide();
> 
> and later if you need it again:
> bouton->show();
> 
> ?
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 
> 


i need to remove a button because i need to put either another widget in its
place or nothing at all. any ideas?
-- 
View this message in context: http://old.nabble.com/keeping-removed-widget-tp26607025p26610022.html
Sent from the Gtkmm mailing list archive at Nabble.com.



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