зеркало из https://github.com/mono/mail-archives.git
81 строка
2.8 KiB
HTML
81 строка
2.8 KiB
HTML
<!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í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ínez Alvarez wrote:
|
|
|
|
><i> Hello friends.
|
|
</I>><i>
|
|
</I>><i> I need I simple widget in Gtk# able to change its color. It must be
|
|
</I>><i> supported both in Linux and Windows.
|
|
</I>><i> I need it to represent a mxn matrix and I want to represent every
|
|
</I>><i> matrix element by mean of a color.
|
|
</I>><i> Any possible widget could bee Button... or Frame (more simple) but I'm
|
|
</I>><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í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>
|