ยค radioGroupF

Buttons

Types

radioGroupF :: (Graphic lbl, Eq alt) => [(alt, lbl)] -> alt -> F alt alt

Synopsis

radioGroupF alts startalt

Description

A radio group is a set of buttons, one of which is active. Pressing one of the buttons make that button active and the previously active button inactive.

Input

changes active alternatives under program control.

Output

the new alternative whenever the active alternative is changed.

Arguments

alts :: [(alt, lbl)]
A list of alternatives that the radio group will provide. The alternatives are paired with their visual representation (a string).
startalt :: alt
The alternative that will be active initially.

Example

 radioGroupF [(1,"P1"),(2, "P2"), (3,"P3"), (0,"Off")] 0

See Also

Customisable version: radioGroupF'.

Related fudgets: buttonF, menuF, toggleButtonF.

Bugs

If the user clicks on an already active alternative, that is output.