wx-0.10.1: wxHaskell is a portable and native GUI library for Haskell.Source codeContentsIndex
Graphics.UI.WX.Dialogs
Contents
Generic dialogs
Messages
Files
Misc.
Primitive
Description
Synopsis
dialog :: Window a -> [Prop (Dialog ())] -> IO (Dialog ())
showModal :: Dialog b -> ((Maybe a -> IO ()) -> IO ()) -> IO (Maybe a)
dialogEx :: Window a -> Style -> [Prop (Dialog ())] -> IO (Dialog ())
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.
showModal :: Dialog b -> ((Maybe a -> IO ()) -> IO ()) -> IO (Maybe a)Source

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