- Placing ScrolledWindow and the scrollbars

Hi, first the sample code:

require ‘gtk2’
class Test < Gtk::VBox

def initialize()
super()
@scrolled_window = Gtk::ScrolledWindow.new
#@scrolled_window.window_placement = Gtk::CORNER_TOP_RIGHT
@scrolled_window.window_placement = Gtk::CORNER_BOTTOM_RIGHT
@scrolled_window.add_with_viewport(Gtk::Button.new(‘test’))
@scrolled_window.show
self.add(@scrolled_window)
self.show
end
end
w=Gtk::Window.new
w.add(Test.new)
w.show_all
Gtk.main

No matter what i set for
.window_placement
The scrollbars always appears at bottom and right side.

How can I make the scrollbars appear in left and top side
instead?

(Btw thanks for the other question which was answered already :slight_smile: )


Get your free email from http://www.linuxmail.org

Powered by Outblaze


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV