RE: win32lib v0.59.1 released

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu