Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login

Gtk::CheckButton

class Gtk::CheckButton

A Gtk::CheckButton places a discrete Gtk::ToggleButton next to a widget, (usually a Gtk::Label). See the section on Gtk::ToggleButton widgets for more information about toggle/check buttons. The important signal ('toggled') is also inherited from Gtk::ToggleButton.

Class Methods

Gtk::CheckButton.new(label = nil, use_underline = true)
Creates a new Gtk::CheckButton with a Gtk::Label to the right of it. If use_underline is true, the label will be created underscores in label indicate the mnemonic for the check button.
  • 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 check button.
  • Returns: a new Gtk::CheckButton.
Gtk::CheckButton.new(stock)
Creates a new Gtk::CheckButton with a Gtk::Stock constant value.

Style Properties

indicator-size: Integer (Read)
Size of check or radio indicator.
  • Allowed values: >= 0
  • Default value: 13
indicator-spacing: Integer (Read)
Spacing around check or radio indicator.
  • Allowed values: >= 0
  • Default value: 2

See Also

ChangeLog

  • 2007-02-10 Apply 2.10. - Masao
  • 2006-01-31 Added Style Properties. - Masao
Ultima modifica:2007/02/08 09:04:01
Parola chiave:
Referenze:[Gtk::ToggleButton] [Gtk::RadioButton] [Gtk::CheckButton] [Gtk::RC]