Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tablelist text wrap bug when disabling -displayondemand

29 views
Skip to first unread message

tombert

unread,
Jul 23, 2018, 1:51:04 PM7/23/18
to
The cell does not wrap the text when executing the code below in Linux Ubuntu 14 LTS. (In Windows it works):


toplevel .main
package re tablelist_tile
tablelist::tablelist .main.tl
pack .main.tl -fill both -expand yes
.main.tl configure -columns {0 A 0 B} -displayondemand 0
.main.tl columnconfigure 1 -stretchable 1 -width 1 -wrap 1
.main.tl insert end {a "abc def ghi jkl mno pqr stu vw xyz"}



Tested with tablelist 6.1 and 6.2; TclTk 8.6.8

Also reported here: https://github.com/tcltk/tklib/issues/4

Regards

nemethi

unread,
Jul 24, 2018, 5:14:17 AM7/24/18
to
Many thanks for your bug report. To fix the bug in Tablelist 6.2, edit
the distribution file tablelistUtil.tcl and perform the following two
changes in it:

1. Go to line #4997, which reads:

if {!$data(-displayondemand) || $data(itemCount) == 0} {

Change it to become

if {$data(itemCount) == 0} {

2. Go to line #5018, which reads:

$w tag remove elidedWin $fromTextIdx $toTextIdx

Just below this line, insert

if {!$data(-displayondemand)} {
return ""
}

This fix will be contained in the next Tablelist release.

--
Csaba Nemethi http://www.nemethi.de mailto:csaba....@t-online.de

tombert

unread,
Jul 24, 2018, 6:31:26 AM7/24/18
to
And many thanks for your prompt support!
0 new messages