A widget used to choose from a list of valid choices.
A Gtk::OptionMenu is a widget that allows the user to choose from a list of valid choices. The Gtk::OptionMenu displays the selected choice. When activated the GtkOptionMenu displays a popup Gtk::Menu which allows the user to make a new choice.
Constructor & Destructor Documentation
virtual Gtk::OptionMenu::~OptionMenu
(
)
[virtual]
Gtk::OptionMenu::OptionMenu
(
)
Member Function Documentation
int Gtk::OptionMenu::get_history
(
)
const
Retrieves the index of the currently selected menu item.
The menu items are numbered from top to bottom, starting with 0.
Returns:
Index of the selected menu item, or -1 if there are no menu items.