Community
Participate
Working Groups
In windows, under desktop settings, appearance, effects, there is an option to "Hide underline letters for keyboard navigation until I press the ALT key". We need a way, when creating custom widgets, to respect this option and only show mnemonics when applicable. This option affects focus cues as well. See: http://blogs.msdn.com/saraford/archive/2004/04/16/114935.aspx We need a way to respect this functionality as well.
The question is whether to provide an API that queries this state or do it automatically in the various draw methods.
We'd require at least an API. Some components may show focus different than the normal focus rect and therefore would have to be able to individually determine if they should show focus. If the drawFocusRect, drawString/Text methods automatically handled it, that would be icing on the cake. The other tricky part is making sure the affected controls are redrawn when the ALT is pressed.
Ok.
Steve, is there any chance of this making 3.2?
Fixed > 20070119 Focus and mnemonics are automatically hidden by the paint GC. No code changes necessary for applications that use it to draw text or the focus.
Awesome. I assume the controls are also invalidated when ALT is pressed?
Yep.