Re:



On 4/4/07, Norbert Bauer <dasaspock gmx de> wrote:
Hi,

i'm using Gtk::Table for an UI-layout.

Is there a possibility to get the attached elements right aligned without using Gtk::Alignment?

Norbert
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


Some elements have alignment attributes.  If you're doing the
'standard' method of having 2 columns with Gtk::Label's in the left
column and having the label text right aligned then you can use
something like this:

Gtk::Label* label = Gtk::manage( new Gtk::Label( "Label Text", 1.0,
0.0, false ) ) ;

or:

label->set_alignment( 1.0, 0.0 ) ;

Although, this only works with widgets that inherit form Gtk::Misc

HTH,
Paul Davis



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