HTk.Menuitems.Menu
Description
HTk's menus.
A Menu is a container for menu structures.
Documentation
The Menu datatype.
Instances
| Eq Menu | Internal. |
| Destroyable Menu | A menu can be destroyed. |
| Synchronized Menu | You can synchronize on a menu object. |
| GUIObject Menu | Internal. |
| HasFont Menu | You can specify the font of a menu. |
| HasBorder Menu | A menu has a configureable border. |
| HasColour Menu | A menu has a normal foreground and background colour and an active/disabled foreground and background colour. |
| Widget Menu | A menu has standard widget properties (concerning focus, cursor). |
class GUIObject w => HasMenu w whereSource
Containers for menus (toplevel windows and menubuttons) instantiate the
class HasMenu.
Instances
| Window w => HasMenu w | Windows are containers for menus. |
| HasMenu MenuCascade | A |
| HasMenu MenuButton | A menubutton is a menu container. |
Arguments
| :: GUIObject i | |
| => Menu | The menu to post. |
| -> Position | The position to pop-up. |
| -> Maybe i | An optional entry to activate when the menu pops-up. |
| -> IO () | None. |
Posts a menu (e.g. in respose of a keystroke or mousebutton press).
Displays a menu at the specified position.