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 Jones <m...@proclivis.com> wrote:

>> 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.
> 
> Correct me if there is something I am missing.
> 
> And if I create this subclass, which is not part of wxWidgets source, where 
> would it reside in wxHaskell source tree? I believe wxc is generated by 
> wxdirect. Would it go in the wxcore tree as a subdir of UI/WxCore?
> 
> Mike
> 
> 
> 
> On Mar 30, 2015, at 4:44 AM, Henk-Jan van Tuyl <hjgt...@chello.nl> wrote:
> 
>> 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 
>> use GridTableBase, neither do the samples on GitHub. There is, however, a 
>> C++ sample program (griddemo) included in the wxWidgets source. WxHaskell is 
>> a huge library and much of it is uncharted territory, you will probably be 
>> the first to use GridTableBase in a Haskell program. It would be great if 
>> you could add a sample program to wxHaskell.
>> 
>> Regards,
>> Henk-Jan van Tuyl
>> 
>> 
>> -- 
>> Folding@home
>> What if you could share your unused computer power to help find a cure? In 
>> just 5 minutes you can join the world's biggest networked computer and get 
>> us closer sooner. Watch the video.
>> http://folding.stanford.edu/
>> 
>> 
>> http://Van.Tuyl.eu/
>> http://members.chello.nl/hjgtuyl/tourdemonad.html
>> Haskell programming
>> --
> 
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> wxhaskell-users mailing list
> wxhaskell-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxhaskell-users



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to