[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-mnstbs-mnui

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 10月 31日 (水) 00:41:59 JST


-------------------------
REMOTE_ADDR = 74.14.158.59
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnui
-------------------------
@@ -194,13 +194,32 @@
  Gtk.main
 
 
+{{br}}
+Let's now turn attention to signal handling and callbacks related to menu and sub-menu items.
 
+{{br}}
+
+=== Signal Handling Mechanisms And Callbacks With Sub-menus 
+
+
+{{br}}
+You have already seen two kinds of menu items at work, namely the straight Gtk::MenuItem, and Gtk::RadioMenuItem. But there are more of these. Following is a short summary:
+
+
+
+
+
+
+{{br}}
+{{br}}
+
 === Image Menu Items
 
 Gtk::ImageMenuItem is very similar to its parent class Gtk::MenuItem except it shows a small image to the left of the menu item label. There are more ways to create new image menu item. If you do not specify any argument to Gtk::ImageMenuItem.new(label = nil, use_underline = true) method or you set the label to nil, you create a new Gtk::ImageMenuItem object with an empty label. You can then use ((*image*)) accessor method to set the image displayed by the menu item. The second argument is true if an underscore in the label indicates a mnemonics.
 
 Additionally you can use Gtk::ImageMenuItem.new(stock_id, accel_group = nil) to create a new image menu item from a stock identifier. This method creates a menu item with the label and the image associated with the stock identifier. The second argument of this function accepts an accelerator group, which will be set to the default accelerator of the stock item. You should set this argument to nil, if you would like to set the key accelerator by yourself manually.
 
+{{br}}
 === Check Menu Items
 
 Gtk::CheckMenuItem allows you to create a menu item that will display a check box symbol beside the label. It will be checked or unchecked depending on the Boolean property managed by accessor ((*active.*)) A new check menu item is created with Gtk::CheckMenuItem.new(label = nil, use_underline = true) class method.
@@ -209,6 +228,26 @@
 
 The check menu item also provides Gtk::CheckMenuItem#inconsistent and Gtk::CheckMenuItem#inconsistent=(Boolean) methods that display a third, "in-between" state that is neither active nor inactive, to show to the user that a conscious selection has to be made.
 
+{{br}}
 === Radio Menu Items
 
 Gtk::RadioMenuItem is a widget derived from Gtk::CheckMenuItem. It is rendered as a radio button instead of a check button. A radio menu item is a check menu item that belongs to a group. At each instant exactly one of the radio menu items from a group is selected.




ruby-gnome2-cvs メーリングリストの案内
Back to archive index