On Wed, 22 Jul 2015 17:22:36 +0200 Andreas Falkenhahn wrote:
AF> Could anybody point me to documentation/examples on how I can create
AF> a wxButton with a keyboard shortcut that is underlined?
http://docs.wxwidgets.org/trunk/classwx_control.html#a2c2ae20554e7db5e765f163022ce09c0
AF> e.g. in a button named "T&est" I want ALT+e (or something similar) to
AF> be the button's keyboard shortcut.
If you use the label above it should already work.
AF> But the documentation of wxButton doesn't mention anything about
AF> keyboard shortcuts and when I set the button's label to something
AF> like "T&est", the "e" is not rendered with an underscore on Windows 7.
Have you tried pressing the "Alt" key?
AF> Are keyboard shortcuts for buttons supported on all major platforms
AF> (MSW, Cocoa, GTK)
Yes.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/