# Why don't my tabs look as nice as theirs?

**URL:** <https://www.ruby-forum.com/t/why-dont-my-tabs-look-as-nice-as-theirs/119655>\
**Category:** wxRuby\
**Created:** [November 8, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/why-dont-my-tabs-look-as-nice-as-theirs/119655 "2007-11-08T22:53:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 8, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/why-dont-my-tabs-look-as-nice-as-theirs/119655/1 "2007-11-08T22:53:32Z")

</div>

Hello again,

I’m running my WxRuby scripts on Windows XP. I am new  
at GUI coding.

Here’s what I don’t understand: why my WxRuby notebook  
tabs don’t look like notebook tabs in other apps running  
on the same machine.

I’ve attached two little examples. The first (mine.gif)  
shows what I get with WxRuby. The second (theirs.gif) is  
from a typical app running on the same Windows XP machine.

Is there a way to make my tabs look like theirs? I feel  
like I’m missing something very simple.

## Here’s my test script:

require “wx”  
include Wx

class MyNotebook \< Notebook

```
def initialize( parent )

```

super(parent, -1)

%w[Apples Oranges Bananas].each{ |d|  
win = Panel.new( self, -1 )  
add\_page( win, d, false )  
}  
end  
end

class MyApp \< App

```
def on_init

```

frame = Frame.new(nil, -1, “Test”)  
MyNotebook.new( frame )  
frame.show()  
end

end

## MyApp.new.main\_loop

Thanks for your help!

Peralta

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [November 8, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/why-dont-my-tabs-look-as-nice-as-theirs/119655/2 "2007-11-08T23:30:27Z")

</div>

Hi

removed\_email\_address@domain.invalid wrote:

> Is there a way to make my tabs look like theirs?  
> [Ruby on Windows: Windows XP Visual Style Controls with wxRuby](http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html)

hth  
alex
