RE: Change font and Foreground of a Label



Tnx. Worked fine. 

Once again I appreciate your help on this :)

-----Original Message-----
From: Tadej Borovšak [mailto:tadeboro gmail com] 
Sent: Tuesday, December 09, 2008 3:05 PM
To: Demetris Zavorotnichenko
Cc: gtk-list gnome org
Subject: Re: Change font and Foreground of a Label

GdkColor is simple struct with RGB values. Docs are located here:
http://library.gnome.org/devel/gdk/stable/gdk-Colormaps-and-Colors.html#GdkC
olor

To use it your app, you can do something like:

GdkColor color;

color.red = 65535;
color.green = 65535;
color.blue = 65535;

gtk_widget_modify_fg( label, GTK_STATE_NORMAL, &color );

That's all;-)


2008/12/9 Demetris Zavorotnichenko <fgcity4652 cytanet com cy>:
>
>
> Ok, there is one thing I haven't used before.
>
> GdkColor
>
> How do I make this white?
>
> To set the foreground I call the function : gtk_modify_fg (label,
> GTK_STATE_NORMAL, "color");
>
> So how would I set GdkColor *color to white?
>
> -----Original Message-----
> From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On
> Behalf Of Demetris Zavorotnichenko
> Sent: Tuesday, December 09, 2008 2:14 PM
> To: gtk-list gnome org
> Subject: RE: Change font and Foreground of a Label
>
> Tnx. Much appriciate the help.
>
> -----Original Message-----
> From: Tadej Borovšak [mailto:tadeboro gmail com]
> Sent: Tuesday, December 09, 2008 2:01 PM
> To: Demetris Zavorotnichenko
> Cc: gtk-list gnome org
> Subject: Re: Change font and Foreground of a Label
>
> Hello.
>
> Have a look at gtk_widget_modify_* family of functions: Link to docs:
> http://library.gnome.org/devel/gtk/stable/GtkWidget.html
>
>
> 2008/12/9 Demetris Zavorotnichenko <fgcity4652 cytanet com cy>:
>> Hi all.
>>
>> How can I change the font and foreground of a Label ?
>>
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>
>
>
>
> --
> Tadej Borovšak
> 00386 (0)40 613 131
> tadeboro gmail com
> tadej borovsak gmail com
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>



-- 
Tadej Borovšak
00386 (0)40 613 131
tadeboro gmail com
tadej borovsak gmail com



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