wxMSW's wxStaticText display no mnemonics (Re: wxStaticText GTK woes)

Francesco Montorsi f18m_cpp217828 at yahoo.it
Wed Jan 10 06:43:49 PST 2007


ABX ha scritto:
> Francesco Montorsi <f18m_cpp217828 at yahoo.it>:
>>> or setting the "always show mnemonics" option in the
>>> display properties -- does it help?
>> sorry, I could find that option... where should I set it?
> 
> "Effects" dialog, see page #3 from
> http://www.abilitynet.org.uk/content/factsheets/pdfs/XP-Display-Properties.pdf

Thanks!
I've found in fact that I had the "always show mnemonics" option off. However it 
does not help: it seems to affect only menu items.

You should be able to see it changing e.g. line 305 of 
samples\widgets\static.cpp to:

m_textLabel->SetValue(_T("And this is a label\ninside the box with a &mnemonic"));

I also added a wxTextCtrl immediately after the wxStaticText to be sure it 
wasn't a problem caused by the presence of only static controls but that didn't 
help too.

NOTE: the static texts used e.g. in wxCheckBoxes and in wxStaticBoxes do have 
mnemonics. They only do not appear in wxStaticTexts alone.

Francesco







More information about the wx-dev mailing list