From: Michael J. <mi...@pr...> - 2015-03-30 21:29:49
|
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 <hj...@ch...> wrote: > On Mon, 30 Mar 2015 06:23:40 +0200, Michael Jones <mi...@pr...> 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 > -- |