1. How may I know if at any instant of time, a tree node is opened or
closed. If I should do an itemcget on a nodes -open option or is it
-autocross option, please let me know ? If both are possible, which is
better and safer ?
2. And how do the xview and the yview commands associated with the Tree
work ?
The documentation for these says only so much :
pathName xview ?arg...?
Standard command to enable horizontal scrolling of pathName.
pathName yview ?arg...?
Standard command to enable vertical scrolling of pathName.
What are the args here ??? Please explain ...
Thanks.
Thanks.
The x/yview methods just service the standard scrollbar protocol.
Consider this snippet from http://mini.net/tcl/LemonTree :
Tree .t -background white -opencmd {LemonTree::open .t}
-yscrollcommand {.y set}
pack [scrollbar .y -command {.t yview}] -side right -fill y
The additional arguments are automagically added when the scrollbar is
moved.