| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Description | |||||||||||||||||||||||||||||||||||
Synopsis | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Generic dialogs | |||||||||||||||||||||||||||||||||||
Dialog | |||||||||||||||||||||||||||||||||||
dialog :: Window a -> [Prop (Dialog ())] -> IO (Dialog ()) | |||||||||||||||||||||||||||||||||||
Create a dialog window. Use showModal for a modal dialog. Use the visible property to show/hide a modeless dialog. | |||||||||||||||||||||||||||||||||||
showModal :: Dialog b -> ((Maybe a -> IO ()) -> IO ()) -> IO (Maybe a) | |||||||||||||||||||||||||||||||||||
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 | |||||||||||||||||||||||||||||||||||
errorDialog | |||||||||||||||||||||||||||||||||||
warningDialog | |||||||||||||||||||||||||||||||||||
infoDialog | |||||||||||||||||||||||||||||||||||
confirmDialog | |||||||||||||||||||||||||||||||||||
proceedDialog | |||||||||||||||||||||||||||||||||||
Files | |||||||||||||||||||||||||||||||||||
fileOpenDialog | |||||||||||||||||||||||||||||||||||
filesOpenDialog | |||||||||||||||||||||||||||||||||||
fileSaveDialog | |||||||||||||||||||||||||||||||||||
dirOpenDialog | |||||||||||||||||||||||||||||||||||
Misc. | |||||||||||||||||||||||||||||||||||
fontDialog | |||||||||||||||||||||||||||||||||||
colorDialog | |||||||||||||||||||||||||||||||||||
passwordDialog | |||||||||||||||||||||||||||||||||||
textDialog | |||||||||||||||||||||||||||||||||||
numberDialog | |||||||||||||||||||||||||||||||||||
Primitive | |||||||||||||||||||||||||||||||||||
dialogEx :: Window a -> Style -> [Prop (Dialog ())] -> IO (Dialog ()) | |||||||||||||||||||||||||||||||||||
Create a dialog window with a certain style. | |||||||||||||||||||||||||||||||||||
Produced by Haddock version 0.9 |