Re: win32lib getTVSelectedText Not Working

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

c.k.lester wrote:
> 
> I'm using Win32Lib 0.60 Patch #67, 15-Jan-2007. The getTVSelectedText item
> doesn't work on sub-items. That is, I have this:
> 
> Set One
>  - value a
>  - value b
>  - value c
> 
> and getTVSelectedText won't return values (returns empty sequence) if any of
> the 'value' items are clicked. It will return 'Set One' when 'Set One' is
> selected.
> 
> Anybody have a fix?!


The problem is with getTVIndex(), which wrongly assumes that all items are at
level 1.
The routine should search among all children of the root, then all children
 of these and so on.
I'll post corrected code later tonight (4pm local time right now) or
 tomorrow. The logic is not completely straightforward, needs some tests.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu