Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 118709 - Support Windows mnemonic (and focus) hiding options
Summary: Support Windows mnemonic (and focus) hiding options
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M5   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 16:32 EST by Chris Gross CLA
Modified: 2007-02-06 16:37 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gross CLA 2005-11-30 16:32:52 EST
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.
Comment 1 Steve Northover CLA 2005-12-07 16:13:54 EST
The question is whether to provide an API that queries this state or do it automatically in the various draw methods.
Comment 2 Chris Gross CLA 2005-12-08 12:35:33 EST
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.
Comment 3 Steve Northover CLA 2005-12-08 17:06:38 EST
Ok.
Comment 4 Chris Gross CLA 2006-02-06 18:05:18 EST
Steve, is there any chance of this making 3.2?
Comment 5 Steve Northover CLA 2007-01-19 17:25:16 EST
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.
Comment 6 Chris Gross CLA 2007-01-21 10:47:00 EST
Awesome.  I assume the controls are also invalidated when ALT is pressed?
Comment 7 Steve Northover CLA 2007-01-22 10:37:07 EST
Yep.