[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ListView MoveAfter Malfunction
[Thread Prev] | [Thread Next]
- Subject: Re: ListView MoveAfter Malfunction
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Tue, 26 Aug 2025 19:37:47 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 26/08/2025 à 18:00, Bruce Steers a écrit :
On Tue, 26 Aug 2025 at 16:53, Bruce Steers <bsteers4@xxxxxxxxx <mailto:bsteers4@xxxxxxxxx>> wrote:oops no sorry , i see what it's doing. to move do i do it like this... For i As Integer = aSelection.Max DownTo 0 sName = aSelection[i] If sName = sKey Then Break ListView1.MoveTo(sName) If ListView1.MoveBelow() Then Return ListView1[sName].MoveAfter(ListView1.Item.Key) Next if you move the line to the line after the same line it's still the same line i suppose. so you have to move past the one below that Respects BruceSThe logic does not seem to add up though because ListView1[sName].MoveBefore(sName) does move things up butListView1[sName].MoveAfter(sName) does nothing. Respects BruceS
It's a bug I just fixed in the last commit. Now trying to move an item before or after itself does nothing.
But why you guys want to do such a thing? What do you expect? -- Benoît Minisini.
Re: ListView MoveAfter Malfunction | Gianluigi <gradobag@xxxxxxxxxxx> |
ListView MoveAfter Malfunction | Gianluigi <gradobag@xxxxxxxxxxx> |
Re: ListView MoveAfter Malfunction | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: ListView MoveAfter Malfunction | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: ListView MoveAfter Malfunction | Bruce Steers <bsteers4@xxxxxxxxx> |