ruby-****@lists*****
ruby-****@lists*****
2003年 4月 3日 (木) 16:45:01 JST
------------------------- REMOTE_ADDR = 61.204.181.66 REMOTE_HOST = ------------------------- ------------------------- = class Gtk::RadioButton Gtk::RadioButton is for a choice from multiple check buttons. A single radio button performs the same basic function as a Gtk::CheckButton, as it's position in the object hierarchy reflects. It is only when multiple radio buttons are grouped together that they become a different user interface component in their own right. Every radio button is a member of some group of radio buttons. When one is selected, all other radio buttons in the same group are deselected. A Gtk::RadioButton is one way of giving the user a choice from many options. == super class * Gtk::CheckButton == class methods --- Gtk::RadioButton.new(label = nil, use_underline = true) Creates a new Gtk::RadioButton with a text label. This is for a first radio button, this is same as Gtk::RadioButton.new(nil, label, use_underline). * label : the text label to display next to the radio button. * use_underline : true if the label will be created underscores in label indicate the mnemonic for radio button. * Returns: a new Gtk::RadioButton. --- Gtk::RadioButton.new(stock) Creates a new Gtk::RadioButton with a Gtk::Stock constant value. * stock: a Gtk::Stock constant value. * Returns: a new Gtk::RadioButton. --- Gtk::RadioButton.new(group, label = nil, use_underline = true) Creates a new Gtk::RadioButton with a text label, adding it to the same group as group. * group : a group (Gtk::RadioButton) what you want to make a group. * label : the text label to display next to the radio button. * use_underline : true if the label will be created underscores in label indicate the mnemonic for radio button. * Returns: a new Gtk::RadioButton. --- Gtk::RadioButton.new(group, stock) Creates a new Gtk::RadioButton with a Gtk::Stock constant value., adding it to the same group as group. * group : a group (Gtk::RadioButton) what you want to make a group. * stock: a Gtk::Stock constant value. * Returns: a new Gtk::RadioButton. == public instance methods --- group Retrieves the group assigned to a radio button. Returns: an array containing all the radio buttons in the same group as radio_button. --- group=(group) Sets a Gtk::RadioButton's group. It should be noted that this does not change the layout of your interface in any way, so if you are changing the group, it is likely you will need to re-arrange the user interface to reflect these changes. * group: an existing radio button group, such as one returned from Gtk::RadioButton#group. * Returns: group --- set_group(group) Same as group=. * group: an existing radio button group, such as one returned from Gtk::RadioButton#group. * Returns: self == See Also Gtk::OptionMenu: Another way of offering the user a single choice from many. - ((<Masao>))