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
Am 20.06.23 um 14:40 schrieb Martyn Smith:OK, I reread (again) the section and understand better . I was mixing in with the drag select in explorer which superposes a drag rectangle over the entries.
I have added a dragsource to my tablelist (6.16 and 6.21) to be able to drag the selection elsewhere in my application.This is the expected and documented behavior, similar to what you can
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
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:csaba....@t-online.de
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 497 |
Nodes: | 16 (2 / 14) |
Uptime: | 04:50:24 |
Calls: | 9,779 |
Calls today: | 20 |
Files: | 13,748 |
D/L today: |
1 files (1K bytes) |
Messages: | 6,186,711 |