ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 8日 (木) 10:39:51 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-tb ------------------------- @@ -3,17 +3,17 @@ == Toolbars -A Gtk::Toolbar is a type of container that holds a number of widgets in a horizontal or vertical row. It is meamt to allow easier customization of large number of widgets with very little trouble. Typically toolbars hold tool buttons that can display an image along with a text string. However, toolbars are actually able to hold any type of widget. +A Gtk::Toolbar is a type of container that holds a number of widgets in a horizontal or vertical row. It is meant to allow easier customization of large number of widgets with very little trouble. Typically toolbars hold tool buttons that can display an image along with a text string. However, toolbars are actually able to hold any type of widget. {{image_right("mnstbs-tb-01.png")}} -In the example program here, a simple toolbar is created that that shows five tool items in a horizontal row. Each toolbar item displays an icon and a label that describes the purpose of the item. The toolbar is also set to display an arrow that will that will provide access to toolbar items that do not fit in the menu. +In the example program here, a simple toolbars is created that shows five tool items in a horizontal row. Each toolbar item, except the separator, displays an icon and a label that describes the purpose of the item. The toolbar is also set to display an arrow that will provide access to toolbar items that do not fit in the menu. -In this example, a toolbar is used to provide cut, copy paste, and select-all functionality to the Gtk::Entry widget. The main program line (body) creates the toolbar, packing it above the entry widget. It then calls "create_toolbar", which populates the toolbar with tool items and connects the needed signals. +In this example, a toolbar is used to provide cut, copy paste, and select-all functionality to the Gtk::Entry widget. The main program body creates the toolbar, packing it above the entry widget. It then calls "create_toolbar", which populates the toolbar with tool items and connects the needed signals. {{image_left("mnstbs-tb-02.png")}} -There are two images here so you can see all the features this toolbar provides, in particular I wanted you to see the arrow, indicating that there are additional menu items available. +There are two images here so you can see all the features this toolbar provides, in particular I wanted you to see the arrow, indicating that there are additional menu items available when top window is smaller than is the size of the toolbar. {{br}} ((*toolbars.rb*))