Keyboard Focus Examples

Example 1-10Example illustrating need to show focus clearly
One of the controls in this window has focus, but it's impossible to tell which...
...until you scroll the list, which reveals that one of its items is currently selected.
If the list control itself is given a "focused" border, it's easy to tell it has focus even when the currently-selected item isn't visible.
Example 1-11Example illustrating use of secondary focus
In this example, it's impossible to tell just by looking which of the two panes actually has keyboard focus.
By using a secondary selection highlight color in the inactive pane, it's immediately obvious that the tree control has focus here...
...and that the list control has focus here.