[gtkada] trying toset a color

jf Menon jean-francois.menon at meteo.fr
Tue Feb 14 14:06:09 CET 2006


Emmanuel Briot wrote:
>> I try to set the bacground color of a label, and it doesn't work:
>>
>> c_white, c_black : Gdk_Color;
>>     c_white := Gdk.Color.White(Gtk.Widget.Get_Default_Colormap);
>>     Modify_Bg(lb, State_Normal , c_white);
>>
>> the label stays gray. Modify_Fg works fine.
>>
>> can someone help me ?
>>     
>
> A label doesn't have a physical window associated to it, so you can't set its 
> color. You have to put the label inside a Gtk_Event_Box, and change the 
> background color of the box itself.
>
> Emmanuel
>
>
>   
thank you very much

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20060214/cfccc596/attachment.htm 


More information about the gtkada mailing list