Re: Setting the color of a label
| From: | pqadmin at physicianquest dot com | Date: | Fri, 30 Nov 2001 01:10:44 +0000 |
| Subject: | Re: Setting the color of a label | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-772@lists.php.net to get a copy of this message | ||
OK... I figured that one out looking at the doc's... Thanks.
But one thing Im having trouble with is a GtkCombo...
If I do it with glade I can grab the widget "combo-entry" or whatever and
get the text selected from there. However, I havent figured out how to do
this hand-coding the widgets. I dont want a ItemList like the example on
Hitchiker guide. Just something simple.
TIA!
On Thu, 29 Nov 2001, Andrei Zmievski wrote:
> At 04:06 PM 11/29/01 -0800, pqadmin@physicianquest.com wrote:
>
> >OK... I cant figure out for the life of me, how to set a GtkLabel a
> >certain color. set_style() doesnt seem to work as it does for GtkClist
> >(e.g.: set_cell_style()).
> >
> >How do I go about doing this?
>
> Labels don't have their own GdkWindows, they just render the text on the
> window of their parent. You need to add label to a GtkEventBox and then set
> the style on the box.
>
> -Andrei
>
>
>