[Mono-winforms-list] Project status of WinForms on MacOS

Geoff Norton gnorton at novell.com
Wed Nov 7 15:51:48 EST 2007


> The graphics object doesn't give access to the raw quartz handle
> (CGContext) which is created in Graphics.FromHwnd and set on
> GDIPlus.Display static variable. The only way I could get it was to
> copy the code from Carbon.GetCGContextForView and use that in my
> drawing code for my button. I think this might be screwing it up
> somehow because I am creating another CGContext when one was already
> created for the Graphics object. Maybe we could support
> IServiceProvider or something on the Graphics object so we could query
> for the CGContext. There is another issue where if you click on the
> button it fails to draw again. Here is the code for the button and a
> screen shot. I am just experiementing for now putting the code in the
> button OnPaint rather than the Theme stuff. 

In fact I just finished and commited the QDBeginCGContext changes; so
you can look at how things work in SVN now.  r89158 is the revision in


More information about the Mono-winforms-list mailing list