Re: Boxes in a frame
- From: "B.Hakvoort" <bart hakvoort be>
- To: jalqadir netscape net
- Cc: gtkmm-list gnome org
- Subject: Re: Boxes in a frame
- Date: Fri, 06 Jan 2006 15:03:51 +0100
well, just add() a box to the frame and then pack anything you want
(other boxes e.g.) in that box.
cheers,
plors
On Fri, 2006-01-06 at 08:57 -0500, jalqadir netscape net wrote:
> I have a class that derives from Gtk::Frame, which arranges its
> widgets in a vertical way, I need to add three horizontal boxes to my
> class, but after using the member function add(widget*....) to add the
> three boxes and running the program I realize that I don't get the
> boxes displayed. Here is the snip code.
> --
> class AddressFrame : virtual public Gtk::Frame{
> private:
> ...
> Gtk::HBox* hboxOne;
> Gtk::HBox* hboxTwo;
> Gtk::HBox* hboxThree;
> ...
> };
> Address::Address{
> try{
> ...
> hboxOne = Gtk::manage(new Gtk::HBox());
> hboxTwo = Gtk::manage(new Gtk::HBox());
> hboxThree = Gtk::manage(new Gtk::HBox());
> ...
> }catch ( std::bad_alloc & x ) {throw;}
> ...
> this->add(dynamic_cast<Gtk::Widget&>(*hboxOne));
> this->add(dynamic_cast<Gtk::Widget&>(*hboxTwo));
> this->add(dynamic_cast<Gtk::Widget&>(*hboxThree));
> ...
> }
>
> I remember reading that when using the add() method one can only add
> one widget to the container, but after looking for its pack_start()
> counter part, I realize that this container does not have such member
> function.
>
> What can I do to solve this problem?
>
> TIA
>
>
> * You cannot exercise your power to a point of humiliation.
> - Jean Chretien
>
> * It's amazing how the small seeds of distrust and misunderstanding
> can yield a crop of hate and death...
>
> * If that document has fine printing anywhere, just chuck it in the
> garbage
> - Jorge Escalante
> Ma'assalama! Adiós! bye!
>
> ______________________________________________________________________
> Try the New Netscape Mail Today!
> Virtually Spam-Free | More Storage | Import Your Contact List
> http://mail.netscape.com
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]