Toc Gallery Index Tree Gtk.Option_Menu

Hierarchy

Description

A Gtk_Option_Menu is a widget that allows the user to choose from a list of valid choices. The Gtk_Option_Menu displays the selected choice. When activated, the Gtk_Option_Menu displays a popup Gtk_Menu which allows the user to make a new choice.

Types

  • type Gtk_Option_Menu is access all Gtk_Option_Menu_Record'Class;
  • type Gtk_Option_Menu_Record is new Button.Gtk_Button_Record with private;

Subprograms

  • procedure Gtk_New (Option_Menu : out Gtk_Option_Menu);
    Create a new Gtk_Option_Menu.
  • procedure Initialize (Option_Menu : access Gtk_Option_Menu_Record'Class);
    Internal initialization function. See the section "Creating your own widgets" in the documentation.
  • function Get_Type return Glib.GType;
    Return the internal value associated with a Gtk_Option_Menu.
  • procedure Set_Menu (Option_Menu : access Gtk_Option_Menu_Record; Menu : access Widget.Gtk_Widget_Record'Class);
    function Get_Menu (Option_Menu : access Gtk_Option_Menu_Record) return Gtk.Menu.Gtk_Menu;
    Provide the Gtk_Menu that is popped up to allow the user to choose a new value. You should provide a simple menu avoiding the use of tearoff menu items, submenus, and accelerators.
  • procedure Remove_Menu (Option_Menu : access Gtk_Option_Menu_Record; Menu : access Widget.Gtk_Widget_Record'Class);
    Remove the menu from the option menu.
  • procedure Set_History (Option_Menu : access Gtk_Option_Menu_Record; Index : Gint);
    function Get_History (Option_Menu : access Gtk_Option_Menu_Record) return Gint;
    Select the menu item specified by index making it the newly selected value for the option menu.

Signals

  • changed
    procedure Handler (Option : access Gtk_Option_Menu_Record'Class);
    Emitted when the selected value has changed

Properties

  • Menu_Property
    Object
    The menu of options

Style Properties

  • Indicator_Size_Property
    Boxed
    Size of dropdown indicator
  • Indicator_Spacing_Property
    Boxed
    Spacing around indicator

Alphabetical Index