Re: Changing the background color of a Label
- From: Skip Montanaro <skip pobox com>
- To: "Jean-Christophe Berthon" <jean-christophe berthon cgey com>
- Cc: "Gtk List" <gtk-list gnome org>
- Subject: Re: Changing the background color of a Label
- Date: Tue, 27 Nov 2001 05:53:24 -0600
(gtk-devel-list removed from the cc list.)
> I'm imagining simply a label with a background color (usually Grey)
> and a foreground color (the color of the writing usually black). But I
> want to change this! I've managed to change the foreground color to
> white but didn't manage to change the background to green ...
GtkLabels are no-window widgets, so they take on the background of their
container. To get your labels to have different backgrounds, add them to
GtkEventBox widgets and change the background color of them.
--
Skip Montanaro (skip pobox com - http://www.mojam.com/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]