[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-mnstbs-tb

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 11月 21日 (水) 13:23:34 JST


-------------------------
REMOTE_ADDR = 184.145.95.170
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-tb
-------------------------
@@ -556,3 +556,15 @@
 {{br}}
 
 === Dragging a Toolbar Within a Window
+
+
+
+
+
+
+:Providing extra drag-sensitive spot on the toolbar:
+
+    Perhaps you remember we mentioned that users may find discovering a 'dnd-sensitive' spot on a toolbar a bit tricky. Well, we can alleviate this problem by turning one of the toolbar items into 'auxiliary drag-and drop handle'. {{image_left("menui-as-aux-drag-sensitive-spot.png")}} In our 'dnd-toolbox.rb' example program we did this to our tool button with the the 'baby-GNU' image labelled 'My stuff' (see the small image on the left). You can initiate dragging on that button, by keeping your mouse button pressed while dragging, or you may merely click on it to invoke its normal action. This is accomplished by setting the 'use_drag_window' property on tool-item object:
+
+     # -- Provide additional drag-sensitive spot on the toolbar ----
+     my_stuff.use_drag_window = true




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index