Re: 2 Questions on Tree widget
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: 2 Questions on Tree widget

From: suchenwi <richard.suchenwirth-bauersachs@siemens.com>
Date: Sat Sep 03 2005 - 21:57:46 CEST

The idea is rather that when the user opens or closes a node, an
-opencommand or -closecommand is invoked and calls your code back to do
what's needed.

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.
Received on Thu Sep 29 14:34:59 2005