Cloning Widgets



A couple of years ago (more or less) I see the question of cloning
widgets came up but I didn't see a definitive answer in the archives or
via Google.

My problem is that I have a dialogue box constructed in Glade that I
want to make multiple concurrent instances of.  As I understand it
libglademm creates a single instance of things from the glade file and
delivers pointers to the single instances whenever get_widget (or
get_widget_derived in my case) is called.  The assumption here is that
each entity is a separate UI feature and there is no replication.
However I need replication which seems to imply full deep copy cloning.
Is this a question of using the Container::children stuff and walking
the widget tree creating a replica or is there a neater way?

Apologies if this is a newbie question but I have only been working with
GTKmm / libglademm / Glade for just over a week so I am exactly that, a
newbie.

Thanks. 
-- 
Russel.
====================================================
Dr Russel Winder                +44 20 7585 2200
41 Buckmaster Road              +44 7770 465 077
London SW11 1EN, UK             russel russel org uk

Attachment: signature.asc
Description: This is a digitally signed message part



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