键盘焦点示例
Example 1-10 Example illustrating need to show focus clearly
![]() |
该窗口某个控件获得焦点,但不知道是谁... |
![]() |
...直到滚动列表,让当前被选的焦点项露出来。 |
![]() |
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-11 Example 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. |