Re: libglademm with my own customised class???
- From: Murray Cumming <murrayc murrayc com>
- To: Dodji Seketeli <dodji gnome org>
- Cc: gtkmm-list gnome org
- Subject: Re: libglademm with my own customised class???
- Date: Mon, 08 May 2006 10:25:00 +0200
On Mon, 2006-05-08 at 10:12 +0200, Dodji Seketeli wrote:
> Hello,
>
> I am not sure you can directly layout your own class with glade.
> You would have to change glade-2 somehow, to make it know about
> your custom class.
>
> What I usually do in that case is to put a box (like GtkVBox)
> in my layout (at the place where I'd like to pack the DisplayPlot),
> and call it "mydisplayplotcontainer" (for instance).
>
> Then load the the box:
>
> Gtk::Box *the_container = Gnome::Glade::Xml::get_widget
> ("mycustomclasscontainer") ;
>
> //then, pack your DisplayPlot
> DisplayPlot *plot = Gtk::manage (new DisplayPlot) ;
> the_container->pack_start (*plot) ;
get_widget_derived() is a neater solution:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch20s03.html
--
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]