I implemented all that and it didn't make any difference. But I see now what is happening. If the mouse is clicked on some text on the listitem before moving the mouse, a drag is always executed. If clicking on some empty space on the line, it starts selecting multiple tracks.
At least now I know now that it's not random. Cheers. -----Original Message----- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Jeremy North Sent: Tuesday, 13 September 2011 5:10 p.m. To: Moderated List for the Discussion of Delphi Programming excluding Database-related topics Subject: RE: Dragging an item in Multi-select listview Use mouse down. Check that left button is down and set the threshold value of start drag method appropriately. On 13/09/2011 2:35 PM, "Ross Levis" <r...@stationplaylist.com> wrote: > Where would I want to execute the BeginDrag? OnMouseMove and check for left > mouse button down? > > Regards, > Ross. > > -----Original Message----- > From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf > Of Gunnar Blumert > Sent: Sunday, 11 September 2011 11:41 p.m. > To: Moderated List for the Discussion of Delphi Programming > excludingDatabase-related topics > Subject: Re: Dragging an item in Multi-select listview > > Ross, > >> Using D7, it seems random whether clicking an item and dragging the mouse >> down will drag the item or select the items. Is there some way on >> controlling what action it will decide to do? > > > set DragMode to dmManual. You then have to call BeginDrag to start dragging. > > -Gunnar > > _______________________________________________ > Delphi mailing list > Delphi@elists.org > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi > > > _______________________________________________ > Delphi mailing list > Delphi@elists.org > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi