Re: text entry color problem....



Am Mit, 2002-08-21 um 08.12 schrieb vyadav cdotd ernet in:
>   hi...
> 
>     i want to change the white background of text entry,
>     if i change the background color of it then only outline of this
> widget becomes colored...if i change foreground color of it then only text 
> in this gets colored...so how the white background can be changed??
>   please help if anybody has tried it...
>    i have written the code like it...
> 
>     gdk_color_parse ("yellow", &color);
>     rc_style = gtk_rc_style_new ();
>     rc_style->bg[GTK_STATE_NORMAL] = color;
>     rc_style->fg[GTK_STATE_NORMAL]=color;
>     rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG;
>     rc_style->color_flags[GTK_STATE_NORMAL] |=GTK_RC_FG;
>     gtk_widget_modify_style (entry, rc_style);
>  
>   thanx in advance..
>               
> 
Hi,
we use 

gtk_widget_modify_base( GTK_WIDGET(pMf->textW),	GTK_STATE_NORMAL,
							color);
bernd
-- 
Bernd Demian <bdemian csc-dd de>
CSC Ploenzke




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