On 08/03/2010 18:57, DeNigris S. wrote:
So I’d reconsider first why you want to use a different size of button since this will break UI guidelines from Windows, Apple and GNOME. Of course, there could well be a good reason, and if so, you could look at using Wx::BitmapButton (possibly drawing your own Bitmap with text go into it), or buttons within a Wx::ToolBar, or using Wx::NativeRenderer which will allow you to draw stock GUI items like button edges in native style at arbitrary sizes
I’ll def look into these - the motivation was to have buttons with really big text for older people using the app.
To me this is an important reason for Wx’s emphasis on native widgets. A
user who needs big text will (or should) have set that in their desktop
settings. Similarly, users with other kinds of, say, visual or mobility
impairment will have set system preferences for colour schemes, or how
mouse moves and clicks are interpreted. By using the native application
frameworks to build the GUI the user’s overall settings will be
honoured, without any extra effort on your part as a programmer. GUI
toolkits which employ lower-level calls to draw lines and text on the
screen, and handle raw input from devices might achieve good integration
at an aesthetic level (look’n’feel), but still not know how to adapt to
more specialised needs.
I should note that as of wx 2.8, extra support for assistive
technologies like was incomplete, and not available in wxRuby - but
common situations like larger text, high contrast etc should be dealt
Are these things (like which platforms do not honor which options) written down somewhere, or do you just learn from experience?
AFAIK there isn’t a single place this is all collated. Where there are
methods not supported at all on one platform or other, this should be
noted, and the wxWidgets wiki has a lot of notes on distinctive features
of different OS’s. Prob more useful is to have a quick look at the UI
guideline documents from Apple, Microsoft and Gnome. Search for platform
- HIG. They’re different in style but have much good advice and thought
on what makes usable and attractive applications.