_
ItemThis package implements a toggle button that has a different visual aspect than the standard button. When a Gtk_Check_Item is active, a tick is drawn into the button, instead of the standard "in/out/ aspect.
Note that the style given could be achieved easily with the standard Gtk_Toggle_Button widget by defining a "theme", ie a special configuration file that specifies a pixmap to use for toggle buttons. However, this Gtk_Check_Item does not need any pixmap, and thus might be a little bit lighter if you need to use a lot of them in your application.
Note also that the visual aspect of the buttons should probably be left up to the user of your application through configuration files.
Widget Hierarchy |
---|
Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Container (see section Package Gtk.Container) \___ Gtk_Bin (see section Package Gtk.Bin) \___ Gtk_Button (see section Package Gtk.Button) \___ Gtk_Toggle_Button (see section Package Gtk.Toggle |
Subprograms |
---|
procedure Gtk_New (Item : out Gtk_Check_Item; Label : in String := ""); | ||
Initialize a button. | ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_Check_Item.
|