'What is the difference between activated element and selected element?
This question is about listbox.I'm not sure what's the difference between activated element and selected element.What is the point?When I select an item (with an arrow key or mouse) in a listbox,the item is both selected and activated,Which make me also question what's the point with the two seperated methods: active(index) method and selection_set(index) method? One more question:When is active without selected,and the opposite?
Solution 1:[1]
Several elements in a listbox can be selected, but only one of them can be active. The active element can deal with inputs, whether they are selected just says something about their internal state.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Grismar |
