Libraries:Gtk:Gtk:OptionMenu
Types
T
Inherits from:A T is a widget that allows the user to choose from a list of valid choices. The T displays the selected choice. When activated the T displays a popup Gtk.Gtk.Menu.T which allows the user to make a new choice.
Using a T is simple; build a Gtk.Gtk.Menu.T, by calling gtk_menu_new(), then appending menu items to it with Gtk.Gtk.MenuShell.Append. Set that menu on the option menu with SetMenu. Set the selected menu item with SetHistory; connect to the "changed" signal on the option menu; in the "changed" signal, check the new selected menu item with GetHistory.
As of GTK+ 2.4, T has been deprecated in favor of Gtk.Gtk.ComboBox.T.
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
New() : Gtk.Gtk.OptionMenu.T
Warning
gtk_option_menu_new has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.
Methods
:GetHistory(self @ T) : Std.Integer.SmallT
Warning
GetHistory has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.
:GetMenu(self @ T) : Gtk.Gtk.Widget.T
Warning
GetMenu has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.
:Height(self @ T) : Std.Integer.SmallT
:Menu(self @ T) : Gtk.Gtk.Widget.T
:MenuItem(self @ T) : Gtk.Gtk.Widget.T
:RemoveMenu(self @ T) : Std.Object.T
Warning
RemoveMenu has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.
:SetHistory(self @ T, index_ @ Std.Integer.SmallT) : Std.Object.T
Warning
SetHistory has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.
:SetMenu(self @ T, menu @ Gtk.Gtk.Widget.T) : Std.Object.T
Warning
SetMenu has been deprecated since version 2.4 and should not be used in newly-written code. Use Gtk.Gtk.ComboBox.T instead.