Visual styles in Windows Vista?

Hi,

I’ve been using wxRuby with Visual Styles on Windows XP very well (as
described here:
Ruby on Windows: Windows XP Visual Style Controls with wxRuby,
I only altered version=“1.8.6.0” to version=“1.9.1.0”), but this seems
not to work under Windows Vista, I only get the boring old styles. Is
there a solution for that?

Windows Vista Home Premium
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]

Marvin

Marvin Gülker wrote:

Ruby on Windows: Windows XP Visual Style Controls with wxRuby,
Oh sorry, without the comma:
Ruby on Windows: Windows XP Visual Style Controls with wxRuby

Marvin

Marvin Gülker wrote:

Hi,

I’ve been using wxRuby with Visual Styles on Windows XP very well (as
described here:
Ruby on Windows: Windows XP Visual Style Controls with wxRuby,
I only altered version=“1.8.6.0” to version=“1.9.1.0”), but this seems
not to work under Windows Vista, I only get the boring old styles. Is
there a solution for that?

Windows Vista Home Premium
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]

Marvin

I encountered the same problem. I selected “Run this program in
Compatibility Mode for: Windows XP Service Pack 2” in the File
Properties for ruby.exe and rubyw.exe. That seems to have resolved the
problem, as I now get the “XP/Vista” visual styles.

Furthermore, I then deselected this option in the File Properties,
rebooted, and still get the “XP/Vista” visual styles.

Windows Vista Home Premium
Ruby 1.8.6
wxRuby 2.0.0

Hope that helps. I’d be curious to know if you see the same results.

David

David M. wrote:

Marvin Gülker wrote:

Hi,

I’ve been using wxRuby with Visual Styles on Windows XP very well (as
described here:
Ruby on Windows: Windows XP Visual Style Controls with wxRuby,
I only altered version=“1.8.6.0” to version=“1.9.1.0”), but this seems
not to work under Windows Vista, I only get the boring old styles. Is
there a solution for that?

Windows Vista Home Premium
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]

Marvin

I encountered the same problem. I selected “Run this program in
Compatibility Mode for: Windows XP Service Pack 2” in the File
Properties for ruby.exe and rubyw.exe. That seems to have resolved the
problem, as I now get the “XP/Vista” visual styles.

Furthermore, I then deselected this option in the File Properties,
rebooted, and still get the “XP/Vista” visual styles.

Windows Vista Home Premium
Ruby 1.8.6
wxRuby 2.0.0

Hope that helps. I’d be curious to know if you see the same results.

David

http://rubyonwindows.blogspot.com/

Thanks David!
I got the effect you described: I first selected compatibility mode for
XP SP2 and tried a simple test application with two buttons. They
appeared in the new design. Then I deselected the option, just as you
said - and the visual styles didn’t disappear.
Is there an explanation for that? Maybe Windows manipulates the
ruby(w).exe file by including a manifest if there’s one in the same
directory when setting the compatibility mode?

Marvin