gtk color parsing problem

2 messages Options
Embed this post
Permalink
Sharique uddin Ahmed Farooqui

gtk color parsing problem

Reply Threaded More More options
Print post
Permalink
I have a color buttons on my application, I want to pass web color
codes ("#fffccc" or just "fffccc") to button. I tried Gdk.Color.parse
but it does not support it.
--
Sharique uddin Ahmed Farooqui
(C++/C# Developer, IT Consultant)
http://safknw.blogspot.com/
"Peace" is the Ultimate thing we want.
_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Chris Howie

Re: gtk color parsing problem

Reply Threaded More More options
Print post
Permalink
On Wed, Oct 28, 2009 at 8:26 AM, Sharique uddin Ahmed Farooqui
<[hidden email]> wrote:
> I have a color buttons on my application, I want to pass web color
> codes ("#fffccc" or just "fffccc") to button. I tried Gdk.Color.parse
> but it does not support it.

It should not be too hard to manually parse this format.  A simple
regular expression would do it.

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list