ruby-****@sourc*****
ruby-****@sourc*****
2012年 12月 6日 (木) 14:05:21 JST
------------------------- REMOTE_ADDR = 70.49.50.17 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro ------------------------- @@ -124,16 +124,38 @@ +# (10.2) +== Setting DnD For Widgets Without Their Own Gdk::Window -# (10.2) -== DnD Tree View Items +# (10.2.1) +=== Dragging a Button Onto a Label + + + +## Dec.06 +## 10.3 DnD Widgets With Their Own Gdk::Window +## 10.3.1 DnD Tree View Items +## 10.3.1.1 Built-in DnD Tree View Mechanism +## 10.3.1.2 Custom Made DnD In Tree View +## 10.3.2 DnD In Text View Widget +## 10.3.3 DnD Icon View Items + + +# (10.3) + +== DnD Widgets With Their Own Gdk::Window + + +# (10.3.1) +=== DnD Tree View Items + Some Gtk widgets have built in drag-and-drop mechanism, which require very little or no additional coding. Such a widget is Gtk::TreeView. However, sometimes you are not satisfied with the default dnd behaviour, and you may need to try to implement some customized dnd functionality. As you will see Gtk::TreeView provides a number of methods to help you accomplish this. We will investigate some of these issues in our example after the next one. -# (10.2.1) +# (10.3.1.1) === Built-in DnD Tree View Mechanism @@ -261,9 +283,39 @@ treeview.reorderable = true Also note that we do not need to set up any signal handlers for the dnd to function. + +## Dec.06 +## 10.3 DnD Widgets With Their Own Gdk::Window +## 10.3.1 DnD Tree View Items +## 10.3.1.1 Built-in DnD Tree View Mechanism +## 10.3.1.2 Custom Made DnD In Tree View +## 10.3.2 DnD In Text View Widget +## 10.3.3 DnD Icon View Items -# (10.2.2) +# (10.3.1.2) === Custom Made DnD In Tree View