mail-archives/gtk-sharp-list/2004-April/003887.html

81 строка
2.8 KiB
HTML
Исходник Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] It there any widget in Gtk# able to change its
color?
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:amartinez%40atc.ugr.es">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REL="Previous" HREF="003882.html">
<LINK REL="Next" HREF="003884.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] It there any widget in Gtk# able to change its
color?
</H1>
<B>Antonio Mart<72>nez Alvarez
</B>
<A HREF="mailto:amartinez%40atc.ugr.es"
TITLE="[Gtk-sharp-list] It there any widget in Gtk# able to change its
color?">amartinez@atc.ugr.es
</A><BR>
<I>Sun, 18 Apr 2004 23:57:53 +0200</I>
<P><UL>
<LI> Previous message: <A HREF="003882.html">[Gtk-sharp-list] It there any widget in Gtk# able to change its color?
</A></li>
<LI> Next message: <A HREF="003884.html">[Gtk-sharp-list] custom CellRenderer
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3887">[ date ]</a>
<a href="thread.html#3887">[ thread ]</a>
<a href="subject.html#3887">[ subject ]</a>
<a href="author.html#3887">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Antonio Mart<72>nez Alvarez wrote:
&gt;<i> Hello friends.
</I>&gt;<i>
</I>&gt;<i> I need I simple widget in Gtk# able to change its color. It must be
</I>&gt;<i> supported both in Linux and Windows.
</I>&gt;<i> I need it to represent a mxn matrix and I want to represent every
</I>&gt;<i> matrix element by mean of a color.
</I>&gt;<i> Any possible widget could bee Button... or Frame (more simple) but I'm
</I>&gt;<i> not able to change its color !!!!
</I>
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<72>nez
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="003882.html">[Gtk-sharp-list] It there any widget in Gtk# able to change its color?
</A></li>
<LI> Next message: <A HREF="003884.html">[Gtk-sharp-list] custom CellRenderer
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3887">[ date ]</a>
<a href="thread.html#3887">[ thread ]</a>
<a href="subject.html#3887">[ subject ]</a>
<a href="author.html#3887">[ author ]</a>
</LI>
</UL>
</body></html>