Discussion:
[wxhaskell-devel] "&" in menu titles (HelloWorld sample)
Nathan Hüsken
2013-08-26 09:36:40 UTC
Permalink
Hey,

When I compile the HelloWorld sample with the wxHaskell HEAD and run it,
the titles of the menus all contain a "&" at the beginning. As I
understand it, somewhere the "&" for marking the symbol with which the
menu can be opened via keyboard is replicated.

I debuged the code a little and found that this replication happens
somewhere with "menuSetTitle" and "menuGetTitle". When the menu is
created, its title is set with menuSetTitle. When the menuBar is
created, the title is retrieved with menutGetTitle, and that string
contains the extra "&".

This happens on ubuntu linux 13.04.
ghc-7.6.2
wxWidgets 2.9.5

Regards,
Nathan
Nathan Hüsken
2013-09-03 10:31:30 UTC
Permalink
It was a bug in wxWidgets, which is fixed in the current svn version.
Post by Nathan Hüsken
Hey,
When I compile the HelloWorld sample with the wxHaskell HEAD and run it,
the titles of the menus all contain a "&" at the beginning. As I
understand it, somewhere the "&" for marking the symbol with which the
menu can be opened via keyboard is replicated.
I debuged the code a little and found that this replication happens
somewhere with "menuSetTitle" and "menuGetTitle". When the menu is
created, its title is set with menuSetTitle. When the menuBar is
created, the title is retrieved with menutGetTitle, and that string
contains the extra "&".
This happens on ubuntu linux 13.04.
ghc-7.6.2
wxWidgets 2.9.5
Regards,
Nathan
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
wxhaskell-devel mailing list
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel
Loading...