Re: Help: how to pack a horizontal box and vertical boxes to a notebook page?
- From: Xiaoling Zhang <gracexlzhang yahoo com>
- To: Maurizio Umberto Puxeddu <umbpux tin it>
- Cc: gtk-list gnome org
- Subject: Re: Help: how to pack a horizontal box and vertical boxes to a notebook page?
- Date: Wed, 12 Mar 2003 09:03:18 -0800 (PST)
Thanks Maurizio and Paul:
I found an example of packing tables from gtk.org,
looks not so difficult...
Xiaoling
--- Maurizio Umberto Puxeddu <umbpux tin it> wrote:
> My application is C++ (gtkmm) and this thing is
> spread in 2 or 3
> classes, so is not exactly a tutorial... but it is
> not different than
> what paul said. Yes prepend the table and then
> attach your widgets to
> the table. If you work with pairs of widgets, your
> table will have size
> (2, n) or (n, 2) depending on the orientation. I
> guess vertical (2, n)
> is more common. Make sure you understand packing
> tables looking at the
> related files in the gtk examples and it should be
> easy.
>
> Maurizio Umberto Puxeddu.
>
> On Wed, 2003-03-12 at 17:28, Xiaoling Zhang wrote:
> > Thanks, Maurizio
> >
> > So, I can use gtk_notebook_prepend_page(*notebook,
> > tabble...)? Do I have to set parents or something?
> I
> > tried it yesterday, but I failed.
> >
> > Do you know where I can find an example?
> >
> > Xiaoling
> >
> > --- Maurizio Umberto Puxeddu <umbpux tin it>
> wrote:
> > > A table will probably look better than a box.
> > >
> > > Maurizio Umberto Puxeddu.
> > >
> > > On Wed, 2003-03-12 at 16:59, Paul Davis wrote:
> > > > >I am trying to put a horizontal box to this
> > > notebook
> > > > >page, (currently I have a vertical box and I
> > > meant to
> > > > >have two rows of label and text intput box on
> the
> > > page
> > > > >with the label “enter order”), However,
> since
> > > > >gtk_notebook_prepend_page(*notebook, child,
> > > tab_label)
> > > > >only accept one child widget, how could I put
> > > both
> > > > >vertical box and horizontal box to this page?
>
> > > >
> > > > pack them into another box, and then add that
> box
> > > to the notebook.
> > > > whether its an hbox or vbox depends on how you
> > > want them arranged with
> > > > respect to each other.
> > > >
> _______________________________________________
> > > > gtk-list mailing list
> > > > gtk-list gnome org
> > > >
> http://mail.gnome.org/mailman/listinfo/gtk-list
> > >
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Web Hosting - establish your business
> online
> > http://webhosting.yahoo.com
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]