From: Yuri Leikind Date: 2001-08-18T02:58:26+09:00 Subject: [ruby-talk:19954] Re: Ruby/Gtk, Text widget question Yes, it does work, thank you. Ryan Tarpine wrote: > > > Why don't you want to use Gtk::ScrolledWindow? Then, you only need > scroll = Gtk::ScrolledWindow.new > scroll.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC) > text = Gtk::Text.new.show > scroll.add text > > Gtk::ScrolledWindow#set_policy takes args for the horizontal scrollbar and > the vertical scrollbar, in that order. From GTK docs: > "The policy determines when the scrollbar should appear...If > GTK_POLICY_ALWAYS, the scrollbar is always present; if GTK_POLICY_NEVER, > the scrollbar is never present; if GTK_POLICY_AUTOMATIC, the scrollbar is > present only if needed" -- Best regards, Yuri Leikind Random signature: Any given program, when running, is obsolete.