[Gtk-sharp-list] Windows theme not applied
Michael Hutchinson
m.j.hutchinson at gmail.com
Tue Mar 17 11:46:57 EDT 2009
On Tue, Mar 17, 2009 at 11:25 AM, Peter Johanson
<peter at peterjohanson.com> wrote:
> I recently solved this by putting the following snippet of SWF before
> any of the Gtk# initialization stuff:
>
> Forms.Application.EnableVisualStyles ();
> Forms.Application.DoEvents ();
>
> This ensured that on the Windows level, the visual style stuff was
> enabled properly, which was then picked up by the WIMP theme properly.
>
> Why this is necessary, and why this works without the above code for
> *some* applications is *beyond* me, but my only guess is some codepaths
> touching Windows API before WIMP is initialized, and others only after?
That's extremely odd. I've tried adding a visual style-enabling
manifest to GTK# apps, which should be equivalent:
http://blogs.msdn.com/rprabhu/archive/2003/09/28/56540.aspx
It didn't help.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Gtk-sharp-list
mailing list