[MonoDevelop] Gdk# Color Parse function
Michael Hutchinson
m.j.hutchinson at gmail.com
Sun May 15 00:13:32 EDT 2011
On Sat, May 14, 2011 at 6:43 AM, Abdul Rauf <raufbutt at gmail.com> wrote:
> Hello,
> I am working with Gdk.Color structure. When I use the function
> "Gdk.Color.Parse(string , ref Gtk.Color)" with a color name like "red" and
> "green", it changes the value of the Color structure in the second argument.
> However, when I pass the RGB string - for example, "RGB:ff/ff/00", it does
> not change the Color structure.
> I found in a book that original GNOME GDK Parse function does accept RGB
> strings as well..Ref:
> (http://openbooks.sourceforge.net/books/wga/graphics-gdk.html)
> Could anyone please tell me about Gdk# behavior in this regard?
In general, Gdk# is a very thin wrapper over GDK, and passes string
directly through, so behaviour should be the same. Did you try just
passing "#ffff00", i.e. like HTML?
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list