Changeset 6dc91d2 in tol for tolbase/lib/wtree/wtree.tcl
- Timestamp:
- Nov 23, 2016, 12:06:20 PM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- cc64b09
- Parents:
- ffeacdc
- File:
-
- 1 edited
-
tolbase/lib/wtree/wtree.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/wtree/wtree.tcl
rffeacdc r6dc91d2 80 80 -default "" -configuremethod "_conf-columnfilter" 81 81 82 option -bindtags \ 83 -default "" -configuremethod "_conf-bindtags" 84 85 option -selectcommand \ 86 -default "" -configuremethod "_conf-selectcommand" 87 82 88 variable tree 83 89 variable vscrollbar … … 265 271 266 272 $t item sort root $order -column $column -dictionary 273 } 274 275 method focus { itemid } { 276 if { $itemid eq "" } { 277 $self item id active 278 } else { 279 $self activate $itemid 280 } 267 281 } 268 282 … … 314 328 -showrootbutton no -showbuttons yes -showlines yes \ 315 329 -scrollmargin 16 -xscrolldelay "500 50" -yscrolldelay "500 50" 330 331 bindtags $tree [linsert [bindtags $tree] 0 $win Wtree] 316 332 317 333 $tree notify install <<ItemSelected>> … … 702 718 } 703 719 } 720 721 method _conf-bindtags { _ addtags } { 722 set options(-bindtags) $addtags 723 bindtags $self [concat $addtags [bindtags $self]] 724 bindtags $tree [concat $addtags [bindtags $tree]] 725 } 726 727 method _conf-selectcommand { _ cmd } { 728 set options(-selectcommand) $cmd 729 if { $cmd eq "" } return 730 $self notify bind $self <Selection> $cmd 731 } 704 732 705 733 # … … 742 770 array set opts [ lrange $col_spec 1 end ] 743 771 set colID [ $tree column create \ 744 -text [ msgcat::mc $opts(-label) ]\772 -text $opts(-label) \ 745 773 -image $opts(-image) \ 746 774 -itembackground "\#e0e8f0 {}" \
Note: See TracChangeset
for help on using the changeset viewer.
