Changeset 2bd0360 in tol
- Timestamp:
- Dec 20, 2016, 9:40:01 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5e157f6
- Parents:
- c212e70
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolinspe__wtree2.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolinspe__wtree2.tcl
rc212e70 r2bd0360 30 30 #///////////////////////////////////////////////////////////////////////////// 31 31 variable wt_tree 32 set open 033 32 set idx_file [$wt_tree item id "root-files"] 34 33 if { [$wt_tree item isopen $idx_file] } { 34 #@ si está abierto el nodo de archivos, se cierra y se abre 35 35 $wt_tree collapse $idx_file 36 set open 1 37 } 36 $wt_tree expand $idx_file 37 #@ si la selección estaba en el nodo de archivos se pierde 38 #@ de modo que seleccionamos el nodo raíz 39 if { [$wt_tree selection get] eq "" } { 40 $wt_tree selection modify $idx_file all 41 } 42 } 43 #@ si la selección es el nodo raíz, actualizamos la vista 38 44 if { [$wt_tree item state get $idx_file selected] } { 39 45 SelectObject 40 }41 if $open {42 $wt_tree expand $idx_file43 46 } 44 47 }
Note: See TracChangeset
for help on using the changeset viewer.
