[RESOLVED] No underline on hot keys
I have acommand button that I want to use alt+some key to fire the on_click event of that button. At design time, I am assigning the button text property as &Test. This underlines the T in the design view but when I run the app, the T is no longer underlined. The alt+T fires the on_click event but the user would not know that this is available without the underline. Am I missing a property somwhere?
Re: No underline on hot keys
That is caused by a Windows setting. You have to press the Alt key for the underlines to become visible, which is reasonable given that you have to press the Alt key to use the shortcut. You can turn this feature on and off within Windows, although I can't for the life of me remember where, but your app has no control over it as it is a system-wide setting.
Re: No underline on hot keys
Is your control's height sufficient to display this??
To switch the hidden property back on you need to open control panel, Display, Appearance and then Effects it's the last checkbox in this screen.
Re: No underline on hot keys
Found it. Control Panel -> Display, select the Appearance tab and click the Effects button. The option is "Hide underlined letters for keyboard navigation until I press the Alt key". I imagine that you could change a registry setting to affect this, but if the user wants to change it they should be allowed to change it themselves.
Re: [RESOLVED] No underline on hot keys