# Gtk::ScrolledWindow.new and setting colours?

**URL:** <https://www.ruby-forum.com/t/gtk-scrolledwindow-new-and-setting-colours/92279>\
**Category:** Ruby-Gnome 2\
**Created:** [April 17, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/gtk-scrolledwindow-new-and-setting-colours/92279 "2007-04-17T19:53:04Z")\
**Posts on this page:** 2\
**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:** [April 17, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/gtk-scrolledwindow-new-and-setting-colours/92279/1 "2007-04-17T19:53:04Z")

</div>

Gtk::ScrolledWindow.new

I seem to be unable to change the colours of a scrolled window.

It has a default grayish colour, thats hard to read in my application.  
How to set it to white background and black foreground?

.modify\_bg seems to not work hmm

=  
Business Simulation  
Free samples of the programs used by 500+ colleges, universities and  
major corporations; 250,000 participants. In-class, on-site or distance  
learning.  
[http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=7c1316fb933f90df21e16d00fcef65c0](http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=7c1316fb933f90df21e16d00fcef65c0)

–  
Powered by Outblaze

* * *

This [SF.net](http://SF.net) email is sponsored by DB2 Express  
Download DB2 Express C - the FREE version of DB2 express and take  
control of your XML. No limits. Just data. Click to get it now.  
[http://sourceforge.net/powerbar/db2/](http://sourceforge.net/powerbar/db2/)

---

<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:** [April 18, 2007, 1:52am UTC](https://www.ruby-forum.com/t/gtk-scrolledwindow-new-and-setting-colours/92279/2 "2007-04-18T01:52:47Z")

</div>

I think you use rcstyle.  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ARcStyle](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ARcStyle)

You could also look at gtk/sample/misc/style\_property.rb  
and style\_property.rc

If anyone would like to provide a simpler example please feel free todo  
so.
