tablelist 6.15.1 on linux,
tcl 8.6.12
Script:
# make a wide window
wm geometry . 1000x200
package require tablelist
# two columns, right and left aligned
pack [tablelist::tablelist .t -columns {0 c1 r 0 c2 l}] -fill both -expand yes
# stretch them equally
.t configure -stretch all
# columns are sortable
.t columnconfigure 0 -labelcommand tablelist::sortByColumn
.t columnconfigure end -labelcommand tablelist::sortByColumn
# add something to sort
.t insert end {c11 c12}
.t insert end {c21 c22}
At the start, the two columns have equal with.
But when I sort them by clicking on either header label, there are two issues:
- the size of the sorted-by column is enlarged
- the sort-indication-arrow is placed at the 'other' (regarding the text
of the label) end of the column header which makes it hard to spot /
easy to miss if the label text is short and the column is wide
Q: Is the placement of the sort-arrow somehow configurable (I'd rather have it near the text, either in front of it, or just after it)?
And IMHO the arrow should not add to the column weight/width when
calculating the new column width for stretchable columns.
TNX
R'
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (3 / 13) |
Uptime: | 30:52:16 |
Calls: | 6,449 |
Calls today: | 1 |
Files: | 12,052 |
Messages: | 5,254,627 |