Re: Alignment of text within a label
- From: muppet <scott asofyet org>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: Alignment of text within a label
- Date: Sun, 24 Apr 2005 07:46:12 -0400
On Apr 24, 2005, at 7:14 AM, Eduardo M KALINOWSKI wrote:
ofey aikon wrote:
$small->set_justify('left'); # I thought this'll do it but it doesn't
What you need is $small->set_alignment(0, 0.5)
to clarify --- GtkLabel isa GtkMisc, and Gtk2::Misc::set_alignment()
controls where within the widget's allocation the contents are drawn.
Gtk2::Label;:set_justify() controls justification of text in multiline
label layouts.
http://developer.gnome.org/doc/API/2.0/gtk/GtkMisc.html#gtk-misc-set-
alignment
http://developer.gnome.org/doc/API/2.0/gtk/GtkLabel.html#gtk-label-set-
justify
--
muppet <scott at asofyet dot org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]