RE: win32lib v0.59.1 released
- Posted by Jonas Temple <jtemple at yhti.net> Jun 09, 2003
- 411 views
Derek, In addition to the change I made to setCheck I also had to make the following change to isChecked in regards to tree views: In the tree view handling section of isChecked, I replaced: lRes = and_bits(state , TVIS_SELECTED ) with lRes = (state / power(2,12)) lRes = floor(lRes - 1) Jonas Jonas Temple wrote: > > > Derek, > > Hey, GREAT job on the v0.59.1. I applied the new release and everything > > I've ever written worked fine. The only problem is in the setCheck() > routine for tree views. This sample program has a tree view with > TVS_CHECKBOXES style defined. Run the program, clicking between the two > > load buttons. You'll notice that when "Load with setCheck" is clicked > the check boxes disappear and appear when the other button is pressed. > I think I found the problem. When setting the checked state the "state" > > value needs to be: > > checked = (2 * power(2, 12)) > unchecked = (1 * power(2, 12)) > > I changed the setting of "state" in setCheck() and the example program > works fine. > > Also, at first glance it looks like you've got the printing issue taken > care of. Thank you! > > Jonas