Am 20.06.23 um 14:40 schrieb Martyn Smith:
I have added a dragsource to my tablelist (6.16 and 6.21) to be able to drag the selection elsewhere in my application.
But now I can no longer drag out a selection of multiple rows.
The documentation says that setting dragsource to true should reset the selection on mouse up (DRAG SOURCE SUPPORT FOR GLOBAL DRAG & DROP)
The following code shows the problem
tablelist::tablelist .t -width 40 -stretch all -columns {0 Name left 0 Description left} -selectmode extended -customdragsource true -activestyle none
pack .t -fill both -expand y
.t insert end [list Part1 "This is part 1"]
.t insert end [list Part2 "This is part 2"]
.t insert end [list Part3 "This is part 3"]
.t insert end [list Part4 "This is part 4"]
Any mouse press (left) just moves the selection.
Is there a missing option ?
Martyn
This is the expected and documented behavior, similar to what you can
see, e.g, in a file manager. To extend the selection, you will have to
press Shift or Control before clicking.
--
Csaba Nemethi
https://www.nemethi.de mailto:
[email protected]
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)