[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]  


Package Gtk.Extra.Check_Item

This 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_Button)
                  \___ Gtk_Check_Item (see section Package Gtk.Extra.Check_Item)

Subprograms

procedure Gtk_New              
  (Item               : out    Gtk_Check_Item;
   Label              : in     String := "");

Initialize a button.
If Label is "", then no label is created inside the button and you will have to provide your own child through a call to Gtk.Container.Add.


function Get_Type              return Gtk.Gtk_Type;

Return the internal value associated with a Gtk_Check_Item.



[Contents]   [Back]   [Prev]   [Up]   [Next]   [Forward]