| Description: |
Concerning the tree widget in version 1.7
When the option -selectfill is active, the bindings for bindImage and
bindText will interfere with each other so that calling bindImage
before bindText will give a different result that calling bindText before
bindImage. This is because both procedures (Tree::bindText and
Tree::bindImage) use:
if {[Widget::getoption $path -selectfill]} {
path.c bind "box" $event $script
} else {
$path.c bind "box" $event {}
}
Both procedures change the binding for the "box".
Calling bindText first, then bindImage will fire the image binding when
clicking on the background of the item (provided the binding is bound
to <B-1>).
|