[Haskell-cafe] Simple GUI Form

timothyhobbs at seznam.cz timothyhobbs at seznam.cz
Thu Nov 29 20:13:15 CET 2012


I know it's not wx, but if you were willing to use GTK, you could simply 
install:

http://hackage.haskell.org/package/gtk-jsinput

and generate the form automatically as described in:

https://github.com/timthelion/gtk-jsinput/blob/master/Graphics/UI/Gtk/
Custom/JSInput.hs



Timothy




---------- Původní zpráva ----------
Od: Rune Harder Bak <rune at bak.dk>
Datum: 29. 11. 2012
Předmět: [Haskell-cafe] Simple GUI Form

"Hi

I have some input parameters
data Input = ...
that I need the user to enter in a gui pop-up. (windows people...)
The rest of the app is not gui (or perhaps progress could be displayed
in a log-window)

What is the easiest way to make such a GUI form?

It need to compile for both Linux and Windows, so I though WxWidgets was 
ideal,
and I got wx[1] < 0.90 to install (using wxWidgets2.8) on both windows
and linux.

Now I just need to create the form, but how do you do that?
Any clues or links to examples? I have never used wxwidgets on any
platform or done any other form of GUI before for that matters.
(apart from some Visual Basic ten years ago, and html).

I tried looking at wx examples, but I couldn't find this simple use
case explained anywhere.

I installed wx in the first place because WxGeneric[2] seemed exactly
what I needed,
but I can't get it to compile using ghc7.4.2 from haskell-platform.
Anybody got that working or have some other simple method?

Help much appreciated!

-Rune

[1] http://hackage.haskell.org/package/wx-0.13.2.3
(http://hackage.haskell.org/package/wx-0.13.2.3)
[2] http://hackage.haskell.org/package/WxGeneric
(http://hackage.haskell.org/package/WxGeneric)

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe at haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
(http://www.haskell.org/mailman/listinfo/haskell-cafe)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121129/0d7c866f/attachment.htm>


More information about the Haskell-Cafe mailing list