[Gtk-sharp-list] It there any widget in Gtk# able to change its
color?
Antonio Martínez Alvarez
amartinez@atc.ugr.es
Sun, 18 Apr 2004 23:57:53 +0200
Antonio Martínez Alvarez wrote:
> Hello friends.
>
> I need I simple widget in Gtk# able to change its color. It must be
> supported both in Linux and Windows.
> I need it to represent a mxn matrix and I want to represent every
> matrix element by mean of a color.
> Any possible widget could bee Button... or Frame (more simple) but I'm
> not able to change its color !!!!
I answer to myself:
this is an example for coloring Gtk.DrawingArea:
Gdk.Color color1 = new Gdk.Color (0x0, 0x0, 0xFF); // a pure blue
myDrawingArea.ModifyBg(StateType.Normal, color1);
Ok. I have probed Frame and DrawingArea with sucess, but Button and
Label seem not to work with ModifyBg.
Maybe I must use Style or .gtkrc files ...
--
Antonio Martínez