uni-htk- Graphical User Interface for Haskell Programs



HTk's option menu widget. A simple clip up menu displaying a set of radiobuttons.



data OptionMenu a Source

The OptionMenu datatype.


Eq (OptionMenu a) 
Destroyable (OptionMenu a)

An option menu can be destroyed.

GUIObject (OptionMenu a)


HasEnable (OptionMenu a)

An option menu is a stateful widget, it can be enabled or disabled.

HasFont (OptionMenu a)

You can specify the font of an option menu.

HasBorder (OptionMenu a)

An option menu has a configureable border.

HasSize (OptionMenu a)

You can specify the size of an option menu.

HasColour (OptionMenu a)

An option menu has a normal foreground and background colour and an active/disabled foreground and background colour.

HasAnchor (OptionMenu a)

An option menu has a text anchor.

HasTooltip (OptionMenu a)

An option menu can have a tooltip (only displayed if you are using tixwish).

Widget (OptionMenu a)

An option menu has standard widget properties (concerning focus, cursor).

GUIValue a => HasValue (OptionMenu a) a

An option menu has a value (the selected element), that corresponds to a polymorphic TkVariable.



:: (Container par, GUIValue a) 
=> par

the parent widget, which has to be a container widget (an instance of class Container).

-> [a]

the list of selectable elements.

-> [Config (OptionMenu a)] 
-> IO (OptionMenu a)

An option menu.

Constructs a new option menu and returns a handler.