Re: How center a small button horizontally like in this picture....



Playing around with glade, here is what I found to work:

vbox
  hbox <-- noexpand, nofill
     button <-- expand, nofill

 -------------------------
|  ----------------       |
| |                |      |
| |     ------     |<-hbox|<--- vbox
| |    |Button|    |      |
| |     ------     |      |
|  ----------------       |
 -------------------------


Hope this helps

Ralph Walden


Christian Seberino wrote:
> 
> I want a button to be centered horizontally in a vbox like this:
> 
>  ----------------------
> |       ------         |<--- vbox
> |      |Button|        |
> |       ------         |
>  ----------------------
> 
> Notice empty space above, below and to right and left.
> 
> How do this????
> 
> I created a hbox and packed a text label of whitespace
> before adding button in order to move it to right
> but this is not a good solution.
> 
> Any ideas?
> 
> Chris
> --
> =======================================================
> | Dr. Christian Seberino  || (619) 553-7940  (office) |
> | SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
> | 53560 HULL ST           ||                          |
> | SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
> =======================================================
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 

Ralph E. Walden
Tripos, Inc.
rwalden tripos com



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