| Ticket UUID: | 1408494 | |||
| Title: | BWidget Tree bug with autoscroll (when dragging) | |||
| Type: | Bug | Version: | None | |
| Submitter: | nobody | Created on: | 2006-01-17 21:02:53 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2006-11-11 03:39:42 | |
| Resolution: | None | Closed By: | dev_null42a | |
| Closed on: | 2006-11-10 20:39:42 | |||
| Description: |
Tree::_auto_scroll calls Tree::_scroll with 2 parameters,
but _scroll has 3 parameters. Error generates and
auto_scroll not works. Proc _scroll correct, only
last 2 parameters packed in list.
With this all works ok:
##################################
proc Tree::_scroll { path scroll } {
variable $path
upvar 0 $path data
set cmd [lindex $scroll 0]
set dir [lindex $scroll 1]
if { ($dir == -1 && [lindex [$path.c $cmd] 0] > 0) ||
($dir == 1 && [lindex [$path.c $cmd] 1] < 1) } {
$path.c $cmd scroll $dir units
set data(dnd,afterid) [after 50 [list
Tree::_scroll $path $scroll]]
} else {
set data(dnd,afterid) ""
DropSite::setcursor dot
}
}
######################################
[email protected]
| |||
| User Comments: |
dev_null42a added on 2006-11-11 03:39:42:
Logged In: YES user_id=1381097 Patch merged. Thanks. pointsman added on 2006-11-02 14:47:59: Logged In: YES user_id=13222 Bug still present in csv head (1.8 got rolled out, with it). The 'quick fix' by aldobu has the problem, that it will fail for widget pathes with spaces in it (though, widget names with spaces in it aren't best practice and will probably break BWidget at other places also). The fix in the original bug report looks OK. aldobu added on 2006-03-23 16:13:33: Logged In: YES user_id=979524 Just to push for a quick bug-fixing, I suggest an alternative solution: # change line 1836 (tree.tcl v.1.52) # from set data(dnd,afterid) [after 200 [list Tree::_scroll $path $scroll]] # to set data(dnd,afterid) [after 200 Tree::_scroll $path $scroll] ** Tested with Tcl 8.4.12 ** | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki