Hi=20
=20
I have a wxHaskell code that runs on Windows and Linux but that behaves
strangely in Mac. I got into the conclusion that the dialog that return
parameters don=92t work properly. I using the showModal function
(http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Dialogs.html#v%3Asho=
wMo
dal )
=20
The code is something like:
=20
genDialog theFrame =3D =20
do dialog <- dialog theFrame [ text :=3D "Dialog name"]
ok <- button p [ text :=3D "Ok" ]
=85=20
set dialog [ layout :=3D =85.. ]
=20
showModal dialog $ \stop ->
do set ok [on command :=3D stop (Just 2 ) ]
=20
Then I use it like
=20
do =85..
res <- genDialog theFrame
=85.
=20
In Mac it show the dialog, allow to chose the parameters but when I =
press Ok
it don=92t execute the code that expects the result of the dialog.
=20
Did anyone had the same problem? And there are any solution?=20
I already google it but I didn=92t find anything.
=20
Of course, I=92ll appreciate any help!!!
=20
Best regards
Miguel Vila=E7a
=20
P.S. I test it in Mac OS X 10.4
=20
=20
|