| Ticket UUID: | 220854 | |||
| Title: | Trailing tab characters in entry widgets are not displayed. | |||
| Type: | Bug | Version: | obsolete: 8.1 | |
| Submitter: | welch | Created on: | 2000-11-01 01:30:04 | |
| Subsystem: | 07. [entry] | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2015-11-08 21:09:13 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2015-11-08 21:09:13 | |||
| Description: |
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.
| |||
| User Comments: |
fvogel added on 2015-11-08 21:09:13:
Merged in core-8-5-branch and trunk. fvogel added on 2015-10-29 20:23:12: Fix proposed in branch bug-220854fff. New test 'entry-6.12' added to check for the fix. Expected result of test 'font-24.10' adjusted to match the result provided by the fix. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki