[Mono-winforms-list] Theming in MWF

Matthijs ter Woord (meddochat) meddochat at zonnet.nl
Fri Jul 29 10:39:46 EDT 2005


Probably, it's impossible.

For example, think of TextBox items. In windows they're having a space
between them of 4 pixels. I don't know any other platform but i assume
that's not always the same. Because SWF uses absolute positioning (in 2.0
there's a bit added without that), you'll never achieve a 100% native
look-and-feel on all platforms.


Greets,

Matthijs ter Woord

----- Original Message ----- 
From: "Kornél Pál" <kornelpal at hotmail.com>
To: "Jonathan S. Chambers" <Jonathan.Chambers at ansys.com>; "Jordi Mas"
<jordi at ximian.com>
Cc: <mono-winforms-list at ximian.com>
Sent: Friday, July 29, 2005 4:31 PM
Subject: Re: [Mono-winforms-list] Theming in MWF


> I'm sure MS did not considered any platform dependent issues when designed
> SWF.:)
>
> And they even had to change things in 2.0 for 64-bit support altough 1.0
was
> designed with 64-bit in mind.:)
>
> But the question is that is it possible to use native look and feel (I
mean
> native appearance not something similar using System.Drawing) on Windows,
> X11, OS X without starting a new SWF from scratch?
>
> Kornél
>
> ----- Original Message -----
> From: "Jonathan S. Chambers" <Jonathan.Chambers at ansys.com>
> To: "Kornél Pál" <kornelpal at hotmail.com>; "Jordi Mas" <jordi at ximian.com>
> Cc: <mono-winforms-list at ximian.com>
> Sent: Friday, July 29, 2005 4:25 PM
> Subject: RE: [Mono-winforms-list] Theming in MWF
>
>
> I think the problem is not using native widgets (as in SWT) as a basis for
a
> toolkit. The problem is mapping those widgets to SWF (since the API for
the
> target toolkit already exists). When SWT was written, I am sure platform
> dependent issues were considered when defining the API. I doubt MS did
that
> with SWF. Thus, it's much harder to retrofit cross platform code to SWF,
> than it would be in writing a toolkit from scratch.
>
> - Jonathan
>
> -----Original Message-----
> From: Kornél Pál [mailto:kornelpal at hotmail.com]
> Sent: Friday, July 29, 2005 9:37 AM
> To: Jonathan S. Chambers; Jordi Mas
> Cc: mono-winforms-list at ximian.com
> Subject: Re: [Mono-winforms-list] Theming in MWF
>
> Yes I am suggesting using native widgets on all operating systems.
>
> Note that controls have a FlatStyle property and native widget
> representation (I mean the appeareance regardless of using native or
managed
> widgets internally) should be used when it is FlatStyle.System otherwise
> System.Drawing should be used.
>
> Kornél
>
> ----- Original Message -----
> From: "Jonathan S. Chambers" <Jonathan.Chambers at ansys.com>
> To: "Jordi Mas" <jordi at ximian.com>; "Kornél Pál" <kornelpal at hotmail.com>
> Cc: <mono-winforms-list at ximian.com>
> Sent: Friday, July 29, 2005 3:28 PM
> Subject: RE: [Mono-winforms-list] Theming in MWF
>
>
> Are you suggesting something more akin to the SWT implementation on Java?
> Where native widgets are used when possible, and when not a managed
> implementation is done?
>
> -----Original Message-----
> From: mono-winforms-list-bounces at lists.ximian.com
> [mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Jordi
Mas
> Sent: Friday, July 29, 2005 8:37 AM
> To: Kornél Pál
> Cc: mono-winforms-list at ximian.com
> Subject: Re: [Mono-winforms-list] Theming in MWF
>
> El dv 29 de 07 del 2005 a les 14:38 +0200, en/na Kornél Pál va escriure:
>
> Hi Kornél,
>
> > As I know MWF uses a single theme and it draws everything using
> > System.Drawing and does not use any native control representations.
> > On Windows it is possible to let the system draw controls. If it
possible
> > under X11 and OS X as well?
>
> Well, that you are asking is that Microsoft have done for SWF, a light
> wrapper on the Win32 API (including controls).
>
> To archive what you want you will need a new SWF implementation, cannot
> be done with the current model or at least easily.
>
> > On Windows there are system colors that could be used to color controls.
> > Is
> > the something equivalent on X11 and OS X?
>
> System Colors and MWF  are in our TODO list... we have not started on
> that yet.
>
> Jordi,
>
> --
> Jordi Mas i Hernàndez - Mono development team -
http://www.mono-project.com
> Homepage and LiveJournal at http://www.softcatala.org/~jmas
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>




More information about the Mono-winforms-list mailing list