AW: [Mono-osx] Problems with first WinForms Hello World

Armin Arnegger arnegger@innosolv.ch
Mon, 11 Apr 2005 23:51:04 +0200


Artyom,

Thanks, I've set the MONO_MWF_USE_QUARTZ_BACKEND to "1" and .....
The MessageBox is shown, but it is hanging.=20
It's not possible to click Ok.
I must cancel with Ctrl-C   :-(

Armin


-----Urspr=FCngliche Nachricht-----
Von: Artyom Tyazhelov [mailto:artyom.tyazhelov@gmail.com]=20
Gesendet: Montag, 11. April 2005 10:05
An: Armin Arnegger
Cc: Adhamh Findlay; mono-osx@lists.ximian.com
Betreff: Re: [Mono-osx] Problems with first WinForms Hello World


Armin,

just for your information:

if you want to use OS X SWF backend driver, you need to export
MONO_MWF_USE_QUARTZ_BACKEND environment variable.
look here:

[MONO_SRC_ROOT] /
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs
line 87:

if (Environment.OSVersion.Platform =3D=3D (PlatformID)128) {
       if (Environment.GetEnvironmentVariable
("MONO_MWF_USE_QUARTZ_BACKEND") !=3D null)
               driver=3DXplatUIOSX.GetInstance();
       else
               driver=3DXplatUIX11.GetInstance();

hope this helps

Arty0M

On Apr 10, 2005 12:14 AM, Armin Arnegger <arnegger@innosolv.ch> wrote:
> See below [Armin]
>=20
[skiped. preserve world bandwith.]