From: Fernando Benavides <greenmellon@gm...> - 2009-10-12 23:30:08
I'm trying to add a menu to my wxhaskell app. I'm working with the
latest wxhasell version (downloaded using darcs) and wxMac-2.8.10 and
I think that there're some incongruences between them. More
specifically, in WxcDefs.
If you check the sources of wxMac-2.8.10 you'll find a file called
include/wx/defs.h. According to this file, for example, wxID_FIND is
5035 but Graphics.UI.WXCore.WxcDefs.wxID_FIND is defined as 5034 and
Graphics.UI.WXCore.WxcDefs.wxID_DUPLICATE is 5035.
I didn't check other platforms or wx versions, but in OSX Find is
working as Duplicate (i.e. the menu is not enabled until something is
On Mon, Oct 12, 2009 at 20:29:50 -0300, Fernando Benavides wrote:
> If you check the sources of wxMac-2.8.10 you'll find a file called
> include/wx/defs.h. According to this file, for example, wxID_FIND is
> 5035 but Graphics.UI.WXCore.WxcDefs.wxID_FIND is defined as 5034 and
> Graphics.UI.WXCore.WxcDefs.wxID_DUPLICATE is 5035.
Sounds like a bug. I see that the above module is autogenerated, but I
suppose the problem is that the underlying Eiffel file wx_defs.e has
So this looks like us falling afoul of the old maxim: Duplication is the
root of all evil.
Do you think you could possibly investigate how to generate from the
wxWidgets headers directly instead of from our own hard copy?
I believe all the wxHaskell developers are busy, and in any case focused
on getting the new wxcore stuff ( git clone git://github.com/bsl/wxcore )
working better with Windows and integrated into the main Darcs
repository. If we could polish this work off and fix Conal's GHCi
problem, we could have a really nice release on our hands, gain some
ground back from gtk2hs, native widgets FTW.
PS: I have a snippet of Haskell code to generate application bundles
directly as a Cabal install hook. No more silly macosx-app script.
Perhaps I should stick it on hackage or something...
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9