Re: wxEuphoria - Menu Font
- Posted by mattlewis (admin) Mar 12, 2012
- 1313 views
Thanks for the explanation.
Is there a work around worth experimenting with?
e.g. create a parent window, change the default font, etc., and then hide this window and create a child window which inherits all the new settings in the parent.
Only if you can update the C++ wrappers and euphoria wrappers and rebuild wxEuphoria. It's actually not very difficult (all things considered), but requires a bit of C++ knowledge. The problem is that you have to call a method that's part of the wxMenuItem class which is not currently wrapped.
Actually, the way to go here is probably to update the code for set_font to check the object type passed (wxWidgets has its own built-in RTTI system). Currently, it only operates on wxDC objects, but we could detect wxMenuItem objects and call the appropriate method. The code is in wxGraphics.cpp, if anyone is feeling up to it.
Matt