ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 5日 (月) 12:46:42 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnub ------------------------- @@ -6,10 +6,10 @@ {{image_right("menubars.png")}} +Gtk::MenuBar is a widget that organizes multiple pop-up menus into a horizontal or vertical row. Each root element is a Gtk::MenuItem that pops down into a sub-menu. An instance of Gtk::MenuBar is usually displayed along the top of the main application window to provide access to functionality provided by the application. -Gtk::MenuBar is a widget that organizes multiple pop-up menus into a horizontal or vertical row. Each root element is a Gtk::MenuItem that pops down into a submenu. An instance of Gtk::MenuBar is usually displayed along the top of the main application window to provide access to functionality provided by the application. +In the following example program called "menubars.rb" a Gtk::MenuBar widget is created with four menus: File, Edit, Organize and Help. Each of the menus is actually a Gtk::MenuItem with a sub-menu. A number of menu items are then added to each sub-menu. The Organize menu has two menu items. The first Preferences is final (leaf) menu item and second Languages menu item which contains a sub-menu with five leaf menu items. -In the following example program called "menubars.rb" a Gtk::MenuBar widget is created with three menus: File, Edit, and Help. Each of the menus is actually a Gtk::MenuItem with a submenu. A number of menu items are then added to each submenu. {{br}} ((*menubars.rb*))