Re: [gtkmm] Q: how to centre in a VBox?



Am 2003.10.22 18:01 schrieb(en) D. R. Evans:
I'm sure this is utterly trivial... but after several hours of trying, I'm giving up and asking for help.

I have several HBoxes, which I would like to pack into a VBox that is displayed as a page in a Notebook.

How do I pack things so that when the Notebook page displays, the HBoxes are vertically centred (either exactly or to a reasonable approximation) on the page? So that the page looks like:

-------------------------------
|                             |
|                             |
|        hbox here            |
|        hbox here            |
|        hbox here            |
|                             |
|                             |
-------------------------------

You could use a hbox and add e.g. an empty label before and
after the widgets that should be shown centered with expand=true.

(I just played a bit with glade and it seems that putting the hbox
inside an alignment doesn't help - I wonder why?)

Regards,

  Martin



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