Changeset ffeacdc in tol for tolbase/lib/byswidget/bmultiselect/bmultiselect.tcl
- Timestamp:
- Nov 18, 2016, 11:18:15 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 6dc91d2
- Parents:
- b23291d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/byswidget/bmultiselect/bmultiselect.tcl
rb23291d rffeacdc 472 472 set last [lindex $indexes end] 473 473 if { $plus } { 474 set start [$right first] 475 if { $first != $start } { 476 $right move [lindex [$right range [$right first] $first] end-1] \ 477 after $last 478 $right selection clearall 479 $right selection set $first $last 480 } 474 # hacia arriba 475 if {$first eq [$right item firstchild root]} return 476 foreach index $indexes { 477 $right move $index before {} 478 } 479 #@+ set start [$right first] 480 #@+ if { $first != $start } { 481 #@+ $right move [lindex [$right range [$right first] $first] end-1] after $last 482 #@+ $right selection clearall 483 #@+ $right selection set $first $last 484 #@+ } 481 485 } else { 482 486 if { $first != 0 } { … … 499 503 if {$indexes != ""} { 500 504 set first [lindex $indexes 0] 501 set last [lindex $indexes end] 505 set last [lindex $indexes end] 502 506 if { $plus } { 503 set end [$right last] 504 if { $last != $end } { 505 $right move [lindex [$right find $last] 1] before $first 506 $right selection clearall 507 $right selection set $first $last 508 } 507 # hacia abajo 508 if {$last eq [$right item lastchild root]} return 509 foreach index [lreverse $indexes] { 510 $right move $index after {} 511 } 512 #@+ set end [$right last] 513 #@+ if { $last != $end } { 514 #@+ $right move [lindex [$right find $last] 1] before $first 515 #@+ $right selection clearall 516 #@+ $right selection set $first $last 517 #@+ } 509 518 } else { 510 519 set end [$right index end]
Note: See TracChangeset
for help on using the changeset viewer.
