|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Generic dialogs
|
|
dialog :: Window a -> [Prop (Dialog ())] -> IO (Dialog ()) | Source |
|
Create a dialog window. Use showModal for a modal dialog. Use
the visible property to show/hide a modeless dialog.
|
|
|
Show a modal dialog. Take a function as argument that takes a function itself
as argument that can be used to end the modal dialog. The argument of this function
is returned as the result of the dialog. The result is Nothing when the dialog
is dismissed via the system menu.
d <- dialog w [text := "Demo"]
ok <- button d [text := "Ok"]
...
result <- showModal d (\stop -> set ok [on command := stop (Just 42)])
|
|
Messages
|
|
Files
|
|
Misc.
|
|
Primitive
|
|
dialogEx :: Window a -> Style -> [Prop (Dialog ())] -> IO (Dialog ()) | Source |
|
Create a dialog window with a certain style.
|
|
Produced by Haddock version 2.1.0 |