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

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 14日 (金) 04:46:42 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-scrolledwin
-------------------------
@@ -58,6 +58,14 @@
 
 --- First example, a child without scrolling support:
 
+
+
+    {{image_right("scroll-w-help-of-wport.png")}}
+
+    This program displays hundred buttons in a table widget, which does not have native scrolling abilities, therefore we need to first add the table to a viewport widget, and only then add the wiewport to scrolled window. As mentioned this is the long way of using viewport. We could instead just use the Gtk::ScrolledWindow#add_with_viewport(child) instance method. The two approaches can be seen in the listing between the "-- (start/end)" comment lines. This part of the program is only needed when the widget you are adding to scrolled window does not include native support for scrolling.
+
+
+
 ((*scrolling-with-help-of-viewport.rb:*))
  #!/usr/bin/env ruby
  require 'gtk2'




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る