| Ticket UUID: | 559792 | |||
| Title: | Long line problem in canvas? | |||
| Type: | Bug | Version: | obsolete: 8.3.4 | |
| Submitter: | tharassys | Created on: | 2002-05-23 19:08:24 | |
| Subsystem: | 05. Canvas Items | Assigned To: | hobbs | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2026-10-22 17:22:37 | |
| Resolution: | Fixed | Closed By: | serhiy.storchaka | |
| Closed on: | 2026-09-21 14:32:27 | |||
| Description: |
The code below appears (I think) to illustrate a problem
with long lines in a canvas. The code should (I think) produce 6
lines of increasing length. The first 4 are OK, the last 2
(the longest) appear to be drawn incorrectly and have some
"odd" behaviour as you scroll (i.e. they appear at some point
as you scroll down).
Am I missing something?
---- Code ----
set w .f
frame $w
canvas $w.bt -width 150 -height 400 \
-scrollregion "0 0 150 60000" -yscrollcommand "$w.sb set"
scrollbar $w.sb -orient vertical -command "$w.bt yview"
pack $w.bt -side left -fill both -expand 1 -padx 5 -pady 5
pack $w.sb -side left -fill y
pack $w -fill both -expand yes
set off 10
for { set c 1000 } { $c < 60000 } { incr c 10000; incr off 10 } {
puts "create line $off 20 $off $c"
$w.bt create line $off 20 $off $c
}
| |||
| User Comments: |
serhiy.storchaka added on 2026-09-21 14:32:27:
Fixed by the line clipper added in 2003 for [663981]. Verified with 8.6 and 9.1: the long lines are drawn correctly at every scroll position. hobbs added on 2003-02-09 15:16:00: Logged In: YES user_id=72656 I believe DRH may have already corrected this ... | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki