You need to specify the "-selectcommand" for the BWidget tree likr for
example:
Tree .t -selectcommand ShowItem
The path to the tree and the node name will be automatically appended
to the command. So your command could look like this:
proc ShowItem {tree node} {
set nodeText [$tree itemcget $node -text]
}
I hope, that helps!
Torsten