[wxhaskell-users] reacting on ALSA events in a wxhaskell application

2011-04-15 Thread Henning Thielemann
I managed to write my first Haskell program with a GUI! It shows a window of sliders and when you move a slider it sends an according MIDI controller message via ALSA. http://code.haskell.org/~thielema/alsa-gui/ Now I like to provide the reverse direction: If my program receives a MIDI

[wxhaskell-users] VSlider that supports swapped order of bounds

2011-04-28 Thread Henning Thielemann
I wanted to have a vertical slider with small numbers at the bottom and large numbers at the top. To this end I implemented a variant of 'vslider' that automatically inverses its direction, if the bottom value is smaller than the top value. You may like to replace the current 'vslider'

Re: [wxhaskell-users] OpenGL support

2011-05-26 Thread Henning Thielemann
Jeremy O'Donoghue schrieb: On 25 May 2011 21:04, Joel Shellman j...@mentics.com mailto:j...@mentics.com wrote: What would it take to get full support for OpenGL in wxHaskell? My understanding is that wxWidgets supports it, we just need the Haskell binding for it, right? And I

Re: [wxhaskell-users] Haskell Platform roadmap?

2011-06-20 Thread Henning Thielemann
On Thu, 16 Jun 2011, Heinrich Apfelmus wrote: I'm currently working on the FRP part [1]. It turns out that FRP is completely orthogonal to wxHaskell; there is no need to add special support for FRP in the GUI library. A handful of convenience wrappers [2] are enough to transform wxHaskell

[wxhaskell-users] how to generate an event?

2011-10-10 Thread Henning Thielemann
From: Johannes Waldmann waldmann at imn.htwk-leipzig.de Mon Oct 10 14:42:52 CEST 2011 Dear all, in wxHaskell (core) I can set and get event handlers http://hackage.haskell.org/packages/archive/wxcore/0.12.1.7/doc/html/Graphics-UI-WXCore-Events.html but how is it possible to create events

[wxhaskell-users] assert that WX.start is run exactly once

2011-10-10 Thread Henning Thielemann
Sometimes I forget to enclose a WX-GUI in WX.start, now I have a case, where WX.start was called twice at different places. How about putting the WX commands in a separate monad and give WX.start the signature: WX.start :: WX a - IO () ?

[wxhaskell-users] Custom events

2011-10-30 Thread Henning Thielemann
Recently on this list it was suggested to use myEventId = wxID_HIGHEST+1 for custom events and register them as menu events. http://snipplr.com/view/17538/ Now I added menus to my application and I got the strange behaviour that selecting a certain menu item (the second one of all

Re: [wxhaskell-users] Custom events

2011-10-30 Thread Henning Thielemann
On Sun, 30 Oct 2011, Henning Thielemann wrote: Recently on this list it was suggested to use myEventId = wxID_HIGHEST+1 for custom events and register them as menu events. http://snipplr.com/view/17538/ Now I added menus to my application and I got the strange behaviour

[wxhaskell-users] adapt layout after changing 'visible' state

2011-12-06 Thread Henning Thielemann
I have a textCtrl 'editor' and a menu item 'editorVisible' that controls the visibility of the textCtrl. set editorVisible [ on command := do b - get editorVisible checked set editor [ visible := b ] ] Now when I uncheck the menu item editorVisible,

Re: [wxhaskell-users] adapt layout after changing 'visible' state

2011-12-08 Thread Henning Thielemann
On Wed, 7 Dec 2011, David Virebayre wrote: 2011/12/6 Henning Thielemann lemm...@henning-thielemann.de I have a textCtrl 'editor' and a menu item 'editorVisible' that controls the visibility of the textCtrl.     set editorVisible         [ on command := do

Re: [wxhaskell-users] ANN: wxHaskell 0.13.2

2012-01-08 Thread Henning Thielemann
On Sat, 7 Jan 2012, Peter Simons wrote: Hi guys, I am please to announce that wxHaskell 0.13.2 has just been uploaded to Hackage. when I try to build the latest version on Linux/x86_64 running NixOS, I get the following error at configure time: Setup: Missing dependency on a

Re: [wxhaskell-users] Working guide for wxWidgets and wxHaskell on Mac OS X Lion 64 bit

2012-02-27 Thread Henning Thielemann
On Mon, 27 Feb 2012, Eric Kow wrote: On 27 Feb 2012, at 15:38, Eric Kow wrote: darcs get --lazy http://code.haskell.org/wxhaskell the-patch-you-downloaded.dpatch cd wxhaskell darcs apply -i ~/foo/the-patch-you-downloaded.dpatch Oops, that's darcs get --lazy REPO --context PATCH The idea

Re: [wxhaskell-users] ListCtrl scroll state or Virtual ListCtrl, and I'd appreciate some mentoring

2012-03-26 Thread Henning Thielemann
On Sun, 25 Mar 2012, Aur Saraf wrote: I need a ListCtrl that I can edit and not only append to. That means either a version of appendItem that takes an index that I've missed, a way to get and later set the scroll-state of a ListCtrl (and then I can just reset all items on every edit) or a

Re: [wxhaskell-users] splitterWindow

2012-04-02 Thread Henning Thielemann
On Mon, 2 Apr 2012, Jeremy O'Donoghue wrote: This is a very good idea, but I was thinking of doing almost exactly the opposite: before I apply the changes to the main repo, I was planning to create a wxHaskell-0.13 (wxWidgets 2.8.x) branch on code.haskell.org, probably by creating

Re: [wxhaskell-users] Major changes to repo at code.haskell.org

2012-04-03 Thread Henning Thielemann
On Tue, 3 Apr 2012, Jeremy O'Donoghue wrote: Please shout loudly and soon if you have any problem with what I am planning to do, as I am planning to make these changes within the next week. The wxWidgets 2.9 support has been waiting in limbo for too long now (my fault, I accept). Your

[wxhaskell-users] Setup failed

2012-06-14 Thread Henning Thielemann
On a Linux machine that I do not administrate the configuration of wxcore-0.13.2 stopped with a simple Setup failed and also the verbose mode did not show more information. Then I found out that the package wx2.8-headers was installed but the package libwxgtk2.8-dev was missing. After

[wxhaskell-users] type safe handling of flags

2012-09-25 Thread Henning Thielemann
I don't know whether I proposed it already ... I wrote a package called enumset. It provides low-level bitsets like they are used by wxWidget. The definition is essentially: newtype EnumSet storage index = EnumSet storage E.g. with data Style = Bold | Italic | Underlined deriving (Enum)

Re: [wxhaskell-users] Fwd: UI updates from non-UI threads: an addition to wx?

2012-09-26 Thread Henning Thielemann
On Wed, 26 Sep 2012, maciek.makow...@gmail.com wrote: Including wxhaskell-users. Anyone interested in async UI update functionality? Am I right that the solution on StackOverflow uses a busy-wait using the Wx Timer? I think this is a bad idea and I found a better solution at:

Re: [wxhaskell-users] Fwd: UI updates from non-UI threads: an addition to wx?

2012-09-26 Thread Henning Thielemann
On Wed, 26 Sep 2012, Henning Thielemann wrote: However, it seems to be essential what eventId you use. The value in the above example (wxID_HIGHEST+1) was already used in my system and this lead to strange behavior. I think wxhaskell should provide support for finding free event ids

Re: [wxhaskell-users] Fwd: UI updates from non-UI threads: an addition to wx?

2013-01-12 Thread Henning Thielemann
On Sun, 30 Sep 2012, maciek.makow...@gmail.com wrote: I have now updated the module to use event-based notifications instead of polling: https://github.com/mmakowski/habaz/blob/master/src/Graphics/UI/WX/Async.hs. The original question still stands: is it worth exposing this sort of

[wxhaskell-users] textCtrlGetSelection: type variable vs. CInt

2018-01-04 Thread Henning Thielemann
wxcore documentation [1] says: textCtrlGetSelection :: TextCtrl a -> Ptr b -> Ptr c -> IO () Is this correct? I assume b and c should be CInt. [1] https://hackage.haskell.org/package/wxcore-0.92.3.0/docs/Graphics-UI-WXCore-WxcClassesMZ.html#v:textCtrlGetSelection