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 _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Alex Fenton
2007-Nov-08 22:30 UTC
[wxruby-users] Why don''t my tabs look as nice as theirs?
Hi peralta at sonic.net wrote:> 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?http://rubyonwindows.blogspot.com/2007/10/windows-xp-visual-style-controls-with.html hth alex