[wxruby-users] MenuBar doesn't show
Luc Traonmilin
luc.traonmilin at gmail.com
Tue Dec 9 15:37:50 EST 2008
Hi all,
I am totally new to Ruby and Wx so i'd appreciate it if someone could
tell me why my menubar doesn't show
Here is the code (running on Vista...):
class MinimalApp < App
def on_init
@frame = Frame.new(nil, -1, "Lister")
@frame.set_client_size(600,400)
@sizer = BoxSizer.new(VERTICAL)
@menubar = MenuBar.new
@file = Menu.new
@open = @file.append("Open", "open")
@menubar.append(@file, "File")
@sizer.add(@menubar, 0, GROW|ALL, 2)
@frame.set_sizer(@sizer)
@frame.show
end
end
Thanks
More information about the wxruby-users
mailing list