Is it possible to change the Multiselect behaviour with a standard TListBox?
I would like items to only be multiselected by holding the Ctrl key, not the Shift key.
I have TActions which update depending on items selected, eg:
TAction(Sender).Enabled := ListBox1.ItemIndex <> -1;
The controls assigned to the action flicker when a listbox item is selected when holding shift to multiselect, this does not happen by holding ctrl key only.
So I would like to use only Ctrl key to multiselect.
Simply put, how can I:
- Multiselect TListBox
- Use Ctrl to multiselect
- Shift has no effect
Thanks :)
TAction
updates happening? – Ken WhiteHandled := True;
otherwise the OnUpdate handler will be called continuously. See Ray Konopka's article on Effectively using ActionLists when they were introduced: edn.embarcadero.com/article/27058 – Marjan Venema