GtkOptionMenu

GtkOptionMenu

Widget used to choose from a list of valid choices.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkContainer
              `-- GtkBin
                     `-- GtkButton
                            `-- GtkOptionMenu

Direct subclasses

None.

Description

A GtkOptionMenu consists of a button containing a label, with an indicator tab to the right.

The GtkMenu currently associated with the option menu pops up in a similar area to that which would be taken up by a dropdown menu. This is, however, a popup menu; if you need a dropdown list widget, take a look at GtkCombo.

GtkOptionMenu has been deprecated since GTK+ 2.0 and should not be used in newly written code.

Constructor

-- Creates a popup menu linked to a button.

Methods

get_menu()
  Retrieves current menu.
set_menu()
  Sets associated menu.
remove_menu()
  Removes existing menu.
set_history()
  Sets button text to that of designated GtkMenuItem.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.