[Mono-dev] Patches for mono-winforms

Jonathan Pobst monkey at jpobst.com
Sun Jul 22 23:50:19 UTC 2012


Please note that this is controlled by Application.EnableVisualThemes.

Mono mimics the Win32 Classic look that the .NET Framework produces when 
you do not call EnableVisualThemes.  (Note that if you created a project 
in VS or something, this call was automatically added in your Program.cs.)

When EnableVisualThemes is called, the rendering should be controlled by 
the OS, so you will see the filled square on Windows 7, but XP is 
probably different.

I think Visual Styles work when Mono runs on Windows.  There were some 
attempts to write it for GNOME and maybe Mac, but they were never completed.

Jonathan


On 7/22/2012 1:57 PM, Steven Boswell II wrote:
> Does Stifu still hang out here?  Is he just gone for the weekend...?
>
> Enclosed is a patch that implements the drawing of mixed-mode
> checkboxes.  Before, Mono just drew the indeterminate state with a check
> mark.  Now, it's a blue box, which is closer to what .NET does.
>   (Technically, the patch uses the "highlight" color, which is a good
> choice until a more exact idea comes along).
>
> All I did was copy CPDrawCheckBox() and modify the end part, where it
> would normally draw a check mark, to draw an inset box with the
> highlight color.
>
> It's a purely visual change, so I don't think a unit test can be written
> for it.
>
> Anyway, I'd appreciate feedback from any interested parties.
>
> Steven Boswell
>
> P.S. I also spent some time this weekend writing an rpm spec file for
> the latest Mono, for my Fedora Core 16 systems.  Now I can run latest
> Mono on my Linux systems and have package-manager support for it.  I did
> that previously for latest MonoDevelop, too.  I'll send a copy to anyone
> that's interested.
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list