ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 6日 (火) 06:21:09 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnub ------------------------- @@ -168,8 +168,9 @@ {{image_left("submenu-as-context-menu.png")}} -Next we create the accelerator group, which will be used by the menu items on our File, Edit, and Languages menus (sub-menus) when clicked, but also by the accelerator keys. We will look more closely to these issues in the following section bellow. But in the meantime pay attention to a neat trick to open only a particular sub-menu as the main window's context menu, using by the developer provided accelerator key combination (here '<ctrl>+L'). You can see the result of this action on the image here on the left. +Next we create the accelerator group, which will be used by the menu items on our File, Edit, and Languages menus (sub-menus) when clicked, but also by the accelerator keys. We will look more closely to these issues in the following section bellow. But in the meantime pay attention to a neat trick to open only a particular sub-menu as the main window's context menu, using by the developer provided accelerator key combination (here '<ctrl>+L'). {{image_right("language-submenu-s1.png")}} +You can see the result of this action on the image here on the left. Note that the Language menu here shown as the context menu spawned from the main window is actually a sub-menu on Organize menu. {{br}}