Re: Table



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>   Label_initlist_1("Number of occupied states (N_states):\t",
> Gtk::ALIGN_LEFT),
>   Label_initlist_2("Numbers of variatet states (N_vek):\t",
> Gtk::ALIGN_LEFT),
>   Label_initlist_3("Index of k-selection (k_index):\t", Gtk::ALIGN_LEFT),
>   Label_initlist_4("Mass (mass):\t", Gtk::ALIGN_LEFT),
You want them to be right-aligned, right? I guess using Gtk::ALIGN_LEFT
does not align them to the right.

>   Table_initlist_1.attach(Label_initlist_1,0,1,0,1,Gtk::EXPAND,
> Gtk::EXPAND,5,5);
Use Gtk::EXPAND | Gtk::FILL for xoptions. The label currently gets only
as much space as it requires (that is the text's width) that is
allocated in the center of the cell. This is why the label is centered
even if you told the label to be left-aligned.

 -- armin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEMSVOhOtxKlDYm6cRAlXKAKC7Up8ykU2dqtblt+WK/rOKBn6RZACfVBlN
zVt/Ev4j5LEUlDu+IhNuPkM=
=bTke
-----END PGP SIGNATURE-----



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