ruby-****@sourc*****
ruby-****@sourc*****
2009年 2月 28日 (土) 09:51:03 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-popup ------------------------- @@ -1,8 +1,11 @@ = Menus and Toolbars {{link "tut-gtk2-mnstbs", "tut-gtk2-mnstbs", "tut-gtk", "tut-gtk2-mnstbs-statb"}} == Pop-up Menus +:Jump ahead: + ((<Keyboard Accelerators|tut-gtk2-mnstbs-popup#Keyboard Accelerators>)) + You will begin this chapter by learning how to create a pop-up menu. A pop-up menu is a Gtk::Menu widget that is displayed to the user when the right mouse button is clicked when hovering above certain widgets. Some widgets such as Gtk::Entry and Gtk::TextView, already have a pop-up menus built into the widget by default. If you want to change the pop-up menu of a widget that offers one by default, you should edit the supplied Gtk::Menu widget in the pop-up callback proc or method. For example, both Gtk::Entry and Gtk::TextView have a ((*populate-popoup*)) signal, which receives the Gtk::Menu that is going to be displayed. You can edit this menu in any way you see fit before displaying it to the user.