ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 14日 (金) 03:11:59 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-scrolledwin ------------------------- @@ -48,7 +48,7 @@ swin.add(viewport) :NOTE: - When you create a view port you either have to supply horizontal and vertical adjustments, or nil(s) instead. + When you create a view port you either have to supply horizontal and vertical adjustments, or nil(s) instead (you may not just call Gtk::Viewport.new without the arguments - nil(s) are mandatory). In the ((*second example*))called "txtv-scrollingw-demo.rb" we will borrow a program from the following page, because in it we use the widgets with built in or native scrolling support, namely, the Gtk::TextView and Gtk::TextBuffer widgets, detailed explanations of which we have postponed until we learn about adjustments, scrolling and viewports. However, this borrowed example is so simple, that the introduction of text view and buffer widgets here without proper explanations will in no way impede our comparison of the differences between the two implementations of scrolbars as announced above in the title at the beginning of this paragraph.