# Visual styles in Windows Vista?

**URL:** <https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101>\
**Category:** wxRuby\
**Created:** [June 26, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101 "2009-06-26T13:36:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [June 26, 2009, 1:36pm UTC](https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101/1 "2009-06-26T13:36:05Z")

</div>

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](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html),  
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

---

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [June 26, 2009, 1:37pm UTC](https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101/2 "2009-06-26T13:37:29Z")

</div>

Marvin GÃ¼lker wrote:

> [Ruby on Windows: Windows XP Visual Style Controls with wxRuby](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html),  
> Oh sorry, without the comma:  
> [Ruby on Windows: Windows XP Visual Style Controls with wxRuby](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html)

Marvin

---

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [June 28, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101/3 "2009-06-28T18:57:35Z")

</div>

Marvin GÃ¼lker wrote:

> Hi,
> 
> I’ve been using wxRuby with Visual Styles on Windows XP very well (as  
> described here:  
> [http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html),  
> 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/](http://rubyonwindows.blogspot.com/)

---

<div class="post-metadata">

**Author:** ![quintus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/49beb7/32.png) [@quintus](https://www.ruby-forum.com/u/quintus)\
**Post date:** [June 28, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/visual-styles-in-windows-vista/171101/4 "2009-06-28T19:47:02Z")

</div>

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](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html),  
> > 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/](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
