Multi Select Listbox being a drag

jeremyr

New member
Local time
Today, 17:43
Joined
Mar 24, 2008
Messages
4
I have a multi-select Simple Listbox where a user can select items to be moved. As each item is clicked a function is called to decide what to do with it. All good so far but here is where I am stuck.
If the user holds down the mouse button & drags it this is what happens:
1) The item that the mouse is over when the button is first pushed becomes highlighted (selected).
2) The item that the mouse is over when the button is released becomes the ListIndex
(Which I get with: MyIndex = Ctrl.ListIndex)

Problem:
I do not want it to Highlighted the first item. I am not even sure how to find out what item it is that was highlighted.
Any ideas?
Because it is multi-select I often will have a few items already selected so I cant just check to see what has been selected with a for/next loop.
Thankyou in advance.
 

Users who are viewing this thread

Back
Top Bottom