ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 14日 (金) 03:06:26 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-scrolledwin ------------------------- @@ -34,7 +34,7 @@ === The difference between the two implementations of scrollbars -Let's see the difference between the two implementations of scrollbars, first for children without the built in support for scrolling, and then for children with it. In the ((*first example*)) program the child widget we intend to use in a scrolled window will be a table, which as you know has no built in support for scrolling, hence we will need to employ the viewport widget. However, there are two ways of doing this: the short way and the long way. +Let's see the difference between the two implementations of scrollbars, first for children without the built in support for scrolling, and then for children with it. In the ((*first example*)) program, called "scrolling-with-help-of-viewport.rb", the child widget we intend to use in a scrolled window will be a table, which as you know has no built in support for scrolling, hence we will need to employ the viewport widget. However, there are two ways of doing this: the short way and the long way. The short way uses the Gtk::ScrolledWindow#add_with_viewport method: