Re: Creating a widget with glade without a window

From: Date: Fri, 26 Jul 2002 18:41:22 +0000
Subject: Re: Creating a widget with glade without a window
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2288@lists.php.net to get a copy of this message
you need to create the widgets as per normal with a surrounding window, then manually edit the glade xml so that you dont have the window elemement anymore and everything should work (it does - ive tried it :-) At 15:59 22/07/2002 -0500, Roberto Villarreal wrote:
Hi, i am trying to create a Widget (vbox) with some other widgets in it but i dont want it attached to any window so I can do something like this:
        $this->glade_main = &new $class('main.glade');
        $main_window = $this->glade_main->get_widget("main_window");
        $main_vbox = $this->glade_main->get_widget("main_vbox");
        $this->glade_tasks = &new $class('tasks.glade');
        $vbox = $this->glade_tasks->get_widget("vbox1");
        $main_vbox->pack_start($vbox);
        $main_window->show_all();
What i want is to have my main.glade window with a menu, an statusbar, an scrolled window in it and all of the others "modules" like tasks in another .glade file that i just need to pack_start them to the scrolled window (or a vbox) Hope you understand me... Thank you in advance -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.gtk.general (#2288) next »