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