gtk color parsing problem

View: New views
2 Messages — Rating Filter:   Alert me  

gtk color parsing problem

by Sharique uddin Ahmed Farooqui-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

Re: gtk color parsing problem

by Chris Howie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 8:26 AM, Sharique uddin Ahmed Farooqui
<safknw@...> 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  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list