#865 Trailing tab characters in entry widgets are not displayed.

obsolete: 8.1
open
Jeffrey Hobbs
5
2003-11-12
2000-11-01
Brent B. Welch
No

OriginalBugID: 2411 Bug
Version: 8.1
SubmitDate: '1999-07-19'
LastModified: '1999-10-22'
Severity: MED
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Linux
OSVersion: kernel 2.0.35, libc.so.5.4.13
Machine: Other

Name:
Chris Laas

Extensions:
(none)

CustomShell:
(none)

Comments:
I'll note that the "bind" line in the example above is a somewhat ugly
hack to be able to insert tabs into the text. It would be nice to have
a standardized way to do that.

ReproducibleScript:
% cat > test.tcl
pack [entry .e]
bind .e <Tab> { tkEntryInsert %W "\t" ; break }
^D
% wish8.1 test.tcl

Type [TAB] at the entry to insert tab characters. For example, type
"[TAB]a[TAB]b[TAB][TAB]" to see what I mean.

ObservedBehavior:
Most tabs show up fine, but any trailing tab does not "show up" -- by
this, I don't mean that I expect it to display any text. I mean that,
for example, pressing [END] to bring the insertion cursor to the end
does not acknowledge the width of the tab, although pressing [RIGHT] and
[LEFT] make it clear that there is a (zero-width) character there. This
is something of a problem in some applications, and I can't find a
simple workaround.

DesiredBehavior:
Tk 4.2 has the correct behavior for this case.
I suspect this has something to do with the introduction of Tk_CharBbox,
but I was unable to pinpoint the bug in the source.

Discussion

  • Don Porter
    Don Porter
    2001-03-23

    • labels: 104344 --> 07. [entry]
     
  • Don Porter
    Don Porter
    2003-11-12

    • assigned_to: nobody --> hobbs