# \- Placing ScrolledWindow and the scrollbars

**URL:** <https://www.ruby-forum.com/t/placing-scrolledwindow-and-the-scrollbars/77041>\
**Category:** Ruby-Gnome 2\
**Created:** [November 23, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/placing-scrolledwindow-and-the-scrollbars/77041 "2006-11-23T18:27:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/dec6dc/32.png) [@quik77](https://www.ruby-forum.com/u/quik77)\
**Post date:** [November 23, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/placing-scrolledwindow-and-the-scrollbars/77041/1 "2006-11-23T18:27:34Z")

</div>

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 🙂 )

–

* * *

Get your free email from [http://www.linuxmail.org](http://www.linuxmail.org)

Powered by Outblaze

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://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](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
