ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 1日 (土) 03:45:01 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-scrolledwin ------------------------- @@ -94,4 +94,6 @@ viewport = Gtk::Viewport.new(horizontal, vertical) +If you pass nil rather than an existing adjustment to the adjustment new method such as Gtk::Viewport.new(nil, nil), new adjustments are created for the created viewport. + The viewport relies entirely on adjustment mechanism to manage its position on the screen. When the scrollbar is dragged or clicked the value in the adjustment is changed and the 'value_changed' signal is emitted, and indeed this action will cause the the child widget to render itself accordingly. The scrollbars in Gtk::ScrolledWindow widget are used as an easy mechanism for adjusting the current value of the adjustment.