Re: [wxhaskell-users] TableBase

2015-03-30 Thread Henk-Jan van Tuyl
On Mon, 30 Mar 2015 06:23:40 +0200, Michael Jones m...@proclivis.com wrote: Is it possible to create a GridTableBase to manage the data rather than use the default created by a Grid? If so, any example code around? I downloaded all reverse dependencies of wx from Hackage, but they do not

Re: [wxhaskell-users] TableBase

2015-03-30 Thread Michael Jones
Ok, but I might have to ask some questions here. I’m a bit green on both. My concern is there are wxc functions with Ptr that I think are basically function callbacks, but I have to know the type signature of them, and that seems to involve some knowledge of wxWidgets and marshaling, etc. I

Re: [wxhaskell-users] TableBase

2015-03-30 Thread Michael Jones
I re-reviewed the wx site, and notice wxdirect generates wxcore. So I am not sure where I would put any new C++ classes that were not part of wxWidgets itself. I guess one could argue for a wxWidgets table class with callbacks and then layering over that. On Mar 30, 2015, at 3:29 PM, Michael

Re: [wxhaskell-users] TableBase

2015-03-30 Thread Michael Jones
From my review, I think I would have to create a subclass of wxGridTableBase in C++, wrapper it in C wrapper, then wrapper C in Haskell. And to be general purpose, the subclass would have to make calls into Haskell with some way to register a function, like the way events work in wxHaskell.