Re: wxEuphoria - Menu Font

new topic     » goto parent     » topic index » view thread      » older message » newer message
EUWX said...

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. smile

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu