Re: Creating widgets at runtime



[snip]
>> -  My second thought was to create a std::vector containing
>> Glib::RefPtr<Gtk::Button> objects (in order to hold onto the button
>> after
>> the method call had ended);
>>    However, there seems to be no way to add the RefPtr object to an HBox
>> (and no way to add a plain button to a vector)
[snip]

Note: Don't use RefPtrs for widgets. Only use RefPtrs when you are forced
to (when you must use create() methods). You may use regular pointers,
with new and delete.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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