Hi,
From: Nigel Wilkinson <>
Subject: Re: Ruby/tk and paned widget question
Date: Wed, 20 Oct 2004 07:35:47 +0900
Message-ID: <>
> horizsplit = TkPanedWindow.new(parent) {
> orient 'vertical'
> }
Do you really want to set "vertical"?
If "orient" option is "vertical", widgets are stacked vertically
in the panedwindow.
The words, "horizsplit", "left" and "right", don't denote "vertical stack".
> horizsplit.add(left)
> horizsplit.add(right)
> horizsplit.pack( 'fill' => 'both' )
You must give widgets for TkPanedWindow#add.
For example,
horizsplit = TkPanedWindow.new(parent,

rient=>:horizontal){
add(TkListbox.new(horizsplit).insert(:end, 'lbox1'))
add(TkListbox.new(horizsplit).insert(:end, 'lbox2'))
add(TkListbox.new(horizsplit).insert(:end, 'lbox3'))
pack(:fill=>:both, :expand=>true)
}
horizsplit.panes.each_with_index{|lbox, idx| lbox.insert(:end, idx)}
--
Hidetoshi Nagai ()