RE: can I wrap a label after N pixels?
- From: Liu Neo-W4135C <W4135C motorola com>
- To: "'Maurizio Colucci'" <seguso forever tin it>, gtk-app-devel-list gnome org
- Subject: RE: can I wrap a label after N pixels?
- Date: Thu, 18 Dec 2003 09:59:11 +0800
Maybe you should call Ilayout->set_width( 100 * PANGO_SCALE ). Not sure what's in Gtkmm. In GTK, Pango layout
width is in unit of PANGO_SCALE, not pixel
-----Original Message-----
From: gtk-app-devel-list-admin gnome org [mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Maurizio
Colucci
Sent: 2003年12月17日 19:53
To: gtk-app-devel-list gnome org
Subject: Re: can I wrap a label after N pixels?
On Wednesday 17 December 2003 11:28 am, Maurizio Colucci wrote:
Hello,
I must render a label wrapping after N pixels. (N is known) Is it
possible? The set_line_wrap function doesn't take any numeric
argument...
This is for the free program http://segusoland.sourceforge.net
(screenshots included)
I can't understand why this doesn't this work... (sorry for the C++ syntax)
mNameLabel = manage(new Label(lNormalizedText));
Glib::RefPtr<Pango::Layout> lLayout = mNameLabel->get_layout();
lLayout->set_width(100);
lLayout->set_wrap(Pango::WRAP_WORD_CHAR);
I really need help... I beg you. :-)
Maurizio
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]