uni-htk-2.2.1.2: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Tix.Subwidget

Synopsis

Documentation

class Widget w => CanBeSubwidget w where Source

Tix mega widgets are composed of several subwidgets. As it is sometimes important to access these subwidgets, there is a way in Htk of creating widgets as subwidgets by instanciating the class CanBeSubwidget.

Use createAsSubwidget instead of the normal constructor new[WidgetName].

Instances

GUIValue a => CanBeSubwidget (Entry a)

An entry widget can be a subwidget, e.g. in a combo box

GUIValue a => CanBeSubwidget (ListBox a) 

createSubwidget :: ObjectKind -> Methods -> GUIOBJECT -> IO GUIOBJECT Source

Using the function createSubwidget, instantiating the class CanBeSubwidget should be easy, compare as an example instantiation of the Entry widget.