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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 11月 20日 (火) 07:43:53 JST


-------------------------
REMOTE_ADDR = 184.145.95.170
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-tb
-------------------------
@@ -308,11 +308,17 @@
 
 {{image_left("detaching-toolbar-n-handlebox-s1.png")}}
 
-The image above on the right shows the toolbar dragged to a different location within the window, whereas the image on the left below shows you from the main window detached toolbar. The latter technique of detaching the toolbar from the window is rather useless, since it does not recover by the toolbar vacated window real estate (space). In both cases there are few details, you should be aware of if you'd like to drag the toolbars to a new location, and indeed to drag it back to it's original location. They are marked in red and blue colour, and some are shown in enlarged images copied over onto their larger views depicting their respective main windows.
+The image above on the right shows the toolbar dragged to a different location within the window, whereas the image on the left below shows you from the main window detached toolbar. The latter technique of detaching the toolbar from the window is rather useless, since it does not recover by the toolbar vacated window real estate (space). In both cases there are few details, you should be aware of if you'd like to drag the toolbar to a new location, and indeed, to drag it back to it's original location. To start dragging a toolbar to a new location you have to click on a particular drag-sensitive spot on the toolbar, and keep pressed the mouse button while dragging. However, the two methods differ in presenting that drag-sensitive spot. The detaching method provides a rather obvious handle, depicted as three vertical bars. Even though however, these handles are hard to spot. On the image here on the left, they are marked with red circles. 
 
+{{image_right("drag-document-cursor.png")}}
 
-Circled in red, is the handle which you have to click if you intend to move the toolbar out of the window. This handle is hard to see even when you run the program.
+On the other hand, as demonstrated later in the second example program, to initiate the dragging of a toolbar within the same window, you need to click and hold the any mouse button on the edge of the frame in which toolbar resides, or on an empty spot within the toolbar. When you have clicked on a drag-sensitive spot the cursor changes to a((*drag-document*))shape see the small image here on the right.
+
+
+The blue colour arrows show the position of the empty frame in which you'd release your drag. However, it is more tricky to discover a sensitive spot at the edges of toolbar, which responds to a grab. To help you with this, Gtk changes the cursor when you find it. I included the enlarged images of different cursors, conveying to the user the type of the action she may continue to carry out or abort in the case an incorrect spot was chosen. 
+
 
+You can drop the toolbar only at the designated edge. It is up to the program designer to decide whether it would be possible to drag a toolbar to any window edge, or to limit this action to a particular edge. In our example program, we decided to use only the top and left window sides as possible locations for our toolbar. {{image_left("ask-to-drop-document-cursor.png")}} If you look closely, you will see a tiny empty rectangular shape (a.k.a.toolbar's ((*frame placeholder)*)) stretched along the side where you can drop the toolbar once you started to drag it. When your 'drag-document' cursor reaches this 'toolbar placeholder' and hovers over it it adds a little question mark to the((*drag-document*))shape. You can see enlarged image of the drop cursor here on the left.  
 
 {{br}}
 




ruby-gnome2-cvs メーリングリストの案内
Back to archive index