Re: [gtkmm] Wrapping label at a given pixel?



On Wednesday 17 December 2003 11:58 am, Maurizio Colucci wrote:
> Hello,
>
> I must render a label wrapping after N pixels. (N is known) Is it possible?
> I can't understand why this doesn't this work...
>
>         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 did it, I dropped labels completely and used gdkwindow::draw_layout.

bye!

Maurizio




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