Re: tktreectrl- image+state question
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: tktreectrl- image+state question

From: Tim Baker <tnbaker1@shaw.ca>
Date: Fri May 27 2005 - 22:19:06 CEST

> (I think) If you want to use 2 distinct states for checked and
> unchecked states, you have to set one state and unset the other (...
> set checkOn; ... unset checkOff), by using {check} and {check on} all
> you have to do is toggle the on state to change the image (check state
> will allways be on).

Good eye. I wrote the thing and didn't realize that was the problem.

It's true, the states should be treated as boolean values. The internet demo
uses radiobuttons as well as checkbuttons. If you only want checkbuttons
you can eliminate the "check" state altogether and just use "on" or "off".

-- Tim Baker
Received on Thu Sep 29 14:19:31 2005