uni-htk- Graphical User Interface for Haskell Programs



HTkMenu is a user-friendly interface to HTk's menu operations, which compiles a version of MenuType.MenuPrim to an HTk menu.



newtype HTkMenu value Source

Describes a menu to be compiled. The value identifies the buttons in the menu so the client can tell which was clicked. The String is a title which is given to menu cascades.


HTkMenu (MenuPrim String value) 

compileHTkMenu :: Container parent => parent -> HTkMenu value -> IO (MenuButton, Event value)Source

compileHTkMenu compiles a menu to a MenuButton. It does not display it; the caller should pack the MenuButton in the parent with whatever options are desired.