WxNotebook

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

I am not an expert but I’ll try to help

according to my experiences, you can add a panel as page in notebook
I don’t know what object Liquiduty_sc is
but if it is a panel then it should be ok

hendra kusuma wrote:

I am not an expert but I’ll try to help

according to my experiences, you can add a panel as page in notebook
I don’t know what object Liquiduty_sc is
but if it is a panel then it should be ok

I got my code to work. Thanks for the help.

Philip