ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 9日 (日) 02:12:49 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-icw ------------------------- @@ -3,7 +3,7 @@ == Inserting Child Widgets -Inserting widgets into a text buffer is a little more involved than was with pixbufs, because you must notify both the text buffer ans the text view to embed a widget. You begin by creating a Gtk::TextChildAnchor object with Gtk::TextBuffer#create_child_anchor, which is used to mark the placement of the widget within the Gtk::TextBuffer. Then you add the widget to the Gtk::TextView widget. +Inserting widgets into a text buffer is a little more involved than was with pixbufs, because you must notify both the text buffer and the text view to embed a widget. You begin by creating a Gtk::TextChildAnchor object with Gtk::TextBuffer#create_child_anchor, which is used to mark the placement of the widget within the Gtk::TextBuffer. Then you add the widget to the Gtk::TextView widget. {{image_right("txtw-icw.png")}}