Tk Library Source Code

View Ticket
Login
Ticket UUID: 1003962
Title: BWidget 1.7 Tree bindings (bindImage, bindText)
Type: Bug Version: None
Submitter: treincke Created on: 2004-08-05 14:09:58
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-30 23:06:42
Resolution: Accepted Closed By: oehhar
    Closed on: 2009-06-30 16:06:42
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>).
User Comments: oehhar added on 2009-06-30 23:06:42:
Not so nice but ok and intense to change in implementation.
I added a note in the docs.