[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-txtw-scrolledwin

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 12月 4日 (火) 03:24:12 JST


-------------------------
REMOTE_ADDR = 184.145.86.37
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-scrolledwin
-------------------------
@@ -157,7 +157,8 @@
 
 {{image_right("viewports-w2tables.png")}}
 
-The following listing demonstrates how to use scrolled windows and viewports, and how the two relate to each other. The program is called "viewports-w2tables.rb", because it implements two scolling tables. However, what is interesting is that only one of the two tables is adorned with scrollbars, and even more peculiar is that these very same scrolbars are actually scrolling both tables. (Not that you will often or ever need to do such a thing, we nevertheless include this program in the tutorial, since it does expose hidden relationship between these widgets to us). 
+The following listing demonstrates how to use scrolled windows and viewports, and how the two relate to each other. The program is called "viewports-w2tables.rb", because it implements two scolling tables. However, what is interesting is that only one of the two tables is adorned with scrollbars, and even more peculiar is that these very same scrolbars are actually scrolling both tables. (Not, that you will often, or even ever, need to do such a thing, we nevertheless include this program in the tutorial, since it does expose hidden relationship between these widgets to us). 
+
 
 As the scrollbar is moved, the viewport will scroll as well because adjustments are synchronized. Namely, new scrolled windows are created with:   Gtk::ScrolledWindow.new(hadjustment = nil, vadjustment = nil), where the two arguments are the scrolled window's adjustments; these will be shared with the scrollbars and the child widget keeping the two widgets in sync. Note, that unlike for Gtk::Viewport.new, where you must always specify all arguments, even when they are nil, for Gtk::ScrolledWindow.new, you do not have to supply both adjustment arguments. So so if you previously created adjustments, obviously, you supply them to Gtk::ScrolledWindow.new method, however if you would like the scrolled window to create them for you, then you do not have to specify any arguments at all, hence using the default nil(s) instead.
 




ruby-gnome2-cvs メーリングリストの案内
Back to archive index