Hi,

Am Dienstag, den 28.02.2006, 21:59 +0100 schrieb Marc Santhoff:
> Am Dienstag, den 28.02.2006, 17:53 +0100 schrieb Mattias Gaertner:
> > On Tue, 28 Feb 2006 06:14:04 +0100
> > Marc Santhoff <[EMAIL PROTECTED]> wrote:
> 
> > > It could be by design, IIRC this is a task done in GTK2 by pango using
> > > markup around the strings. Dunno if it's true for simple TEdit, too.
> > > 
> > > pseudo code:
> > > TEdit.setText("<fgcolor red>The Text to show</fgcolor red>");
> > 
> > Nope.
> > 
> > The SetWidgetColor works. Just not at creation.
> 
> Not that I'm really into it, but this snippet popped up on a GTK mailing
> list some hours ago:
> 
> <[EMAIL PROTECTED]>
> 
> says:
> 
> <snip>
> 
> To modify font size
>  PangoFontDescription *font;
>   font=pango_font_description_from_string("San 9");
>   gtk_widget_modify_font(widget,font);


> 
> To modify color
>  GdkColor color;
>  gdk_color_parse("blue",color);
>  gtk_widget_modify_fg(widget,GTK_STATE_NORMAL,&color);
> 
> </snip>
> 

> It looks to me like on the GTK side the widget has to be realized
> already ...

Why? I can't see a colormap in the code above...

cheers,
  Danny


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to