ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 1日 (木) 09:45:32 JST
------------------------- REMOTE_ADDR = 74.14.158.59 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui ------------------------- @@ -8,7 +8,8 @@ === Submenus -Submenus in GTK+ are not created by separate type of menu item widget but by calling Gtk::MenuItem#submenu= method. This method calls Gtk::Menu#attach_to_widget to attach the submenu to the menu item and places an arrow beside the menu item to show that it now has a submenu. If the menu item already has a submenu, it will be replaced with the given Gtk::Menu widget. +Submenus in GTK+ are not created by separate type of menu item widget but by calling Gtk::MenuItem#submenu= method. This method calls Gtk::Menu#attach_to_widget to attach the sub-menu, which is actually a Gtk::Menu object, to the menu item. The menu item which is a sub-menu is marked by an arrow which is placed beside the text of menu item to show that it now has a sub-menu. If the menu item, to which you assign a sub-menu (Gtk::MenuItem#submenu=) already has a sub-menu, it will be replaced with the last Gtk::Menu widget that was assigned to it. + :The Mechanics Of Building Submenu Hierachies