I am trying to create a notebook with tabs but have failed. What do I
need to do get the tabbed notebook to display properly? Thanks.
require ‘rubygems’
require ‘wx’
require ‘ratio1.rb’
class MyApp < Wx::App
def on_init
@main_win = InputSubclass.new
@nbpLiquidity = Liquidity_sc.new
@nbpActivity = Activity_sc.new
@m_notebook = Wx::Notebook.new(@main_win, 1000)
@m_notebook.add_page(@nbpLiquidity, "test1")
@m_notebook.add_page(@nbpActivity, "test2")
@main_win.show
end #def
end # class
MyApp.new.main_loop
====================
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 510,310 Data Entry wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Liquidity Ratios wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Activity Ratios wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Leverage Ratios wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Performance Ratios wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL 500,300 Valuation Ratios