Listview listbox item selected

Supersedes #380 as:

 - additional commit to delete unused code
 - reverts name changes to border control (not necessary)
 - rebases multiple commits into one (for readability)