Hello Everyone,
A bit late to the discussion, but I’ve put together two sample projects that should help illustrate what everyone’s been talking about. There are multiple ways a user can click and select items in a TListBox.
The first example (shown in the first screenshot) demonstrates the simple case, tracking only the first and last selected elements.
As Jamie rightly pointed out, “One must remember that the ListBox can have random selections; they aren't always contiguous.” The second example (and its corresponding screenshot) handles exactly that scenario.
Hope this helps!