Go to the first, previous, next, last section, table of contents.

Creating a Button

To create a Button, use the button function:


button :: Picture -> a -> Component (Button a, DisplayHandle)

The first argument is the button's initial label, the second argument is the value to output upon the user clicking the button. Values are `output' via the application handle Button returned, see See section Button operators for complete overview of operations on Button handles. The DisplayHandle does, as usual, carry the user interface handle for the component.


Go to the first, previous, next, last section, table of contents.