Re: wxEuphoria - Menu Font
- Posted by mattlewis (admin) Mar 12, 2012
- 1303 views
I thought about that. We should probably break it out to handle all the classes that support SetFont() instead of just wxDC.
Absolutely. You can take a look at something like wxList.cpp:get_selection() for an example.
I feel that the application programmer should be able to have full control of the looks of the Window right from the beginning, without expecting the end-user to do special settings in the Windows Display settings through the Control Panel.
As an application programmer, I would prefer that I spoon feed the first window the way I think it should be and immediately allow the end-user to change the looks to the extent compatible with the software I am giving him.
All of the above comments apply to Microsoft Windows. I do not know Linux or Mac to make any comments.
Have you tried using wxAUI? (Advanced User Interface) It doesn't allow you full control over the user interface, but it certainly gives you a lot more customization than you would normally have with the vanilla widgets.
From looking at the screenshot that Greg posted earlier, changing the font appears to trigger a "user drawn" menu. That means that when the menu item has to be drawn, Windows calls your application and tells it to draw it, so you can use whatever font, etc that you desire. Obviously, wxWidgets is taking care of this for us. There's no reason why you couldn't implement something like this in Win32Lib (maybe it is already, even).
Matt