[Gtk-sharp-list] Underline in pango

Borja Sánchez Zamorano borsanza@terra.es
Fri, 18 Jun 2004 03:03:45 +0200


Thanks!!!!

I am stupid!!!!

it's SetMarkup, thanks thanks thanks

El vie, 18-06-2004 a las 02:44, Sebastian escribió:
> Hi,
> 
> 
> On Fri, Jun 18, 2004 at 01:32:52AM +0200, Borja S?nchez Zamorano wrote:
> 
> > I need to activate the underline in a text.
> > 
> > Example:
> >   Gdk.Pixmap drawable;
> >   Gdk.GC gc;
> >   Gdk.Color redcolor;
> >   Pango.Layout layout;  
> > ....
> > ....
> > ....
> > ....
> >   layout.FontDescription = Pango.FontDescription.FromString("Sans 10"=
);
> >   gc.Foreground = redcolor;
> >   layout.SetText("It's not underlined");
> >   drawable.DrawLayout(gc, 10, 10, layout);
> > 
> > 
> > How I do it?
> 
> Have you tried this?
> 
>   layout.SetText("It's not <u>underlined</u>");
> 
> 
> > Thanks:
> > 	BorSanZa
> 
> ciao,
> Sebastian
-- 
Borja Sánchez Zamorano <borsanza@terra.es>