Re: Horizontal aligned columns



Hi!

Thus spoke muppet:

   my $label = Gtk::Label->new ('fpp');
   $label->set_alignment (0.0, 0.5); # left aligned
   $label->set_alignment (1.0, 0.5); # right aligned
   $label->set_alignment (0.5, 0.0); # top aligned
   $label->set_alignment (1.0, 1.0); # bottom-right aligned

the align parameter is a float [0.0, 1.0], where 0.0 is top/left, 1.0 is
bottom/right, and 0.5 is centered.

Works pretty good. Thank you very much!

Thomas


-- 
/"\
\ /  ASCII ribbon campaign against HTML mail
 X
/ \

Attachment: pgpc2XZLU7adM.pgp
Description: PGP signature



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