[Mono-osx] EnableVisualStyles with Mono 2.0 on OS X

Andreas Färber andreas.faerber at web.de
Sun Oct 26 07:06:11 EDT 2008


Hello,

Am 20.10.2008 um 21:44 schrieb Michael Foord:

> Apparently, to use the new native driver for Winforms on OS X the  
> environment variable 'MONO_THEME' needs to be set to 'visualstyles'  
> and the application should call 'Application.EnableVisualStyles()'  
> before starting the event loop.
>
> This makes no difference to my IronPython Windows Forms application  
> with Mono 2.0. I can verify that it sees the correct environment  
> variable, but its absence or presence and calling or not calling  
> 'EnableVisualStyles' doesn't change the appearance of the application.
>
> Is there anything else I need to do or should the native drivers be  
> used by default now? (Whilst googling around I've found  
> contradictory statements on the matter.)
>
> I've attached a screenshot.

The screenshot you attached looks as if it's using some native driver.  
Otherwise it would have an X11 icon next to the title, no?

Andreas



More information about the Mono-osx mailing list