RE: Resurrected: How to select multiple in list
- Posted by totorangi at hotmail.com Nov 29, 2002
- 431 views
> On Fri, 29 Nov 2002 02:01:03 +0000, <totorangi at hotmail.com> wrote: > > > > > Happy days. Been struggling to programmatically select multiple items in > > a > > List control. Had found out about LBS_EXTENDEDSEL but still kept getting > > > > an error, however the archive came to the rescue with the following > > setMany procedure. > > > > Questions for Derek I guess. Is this now part of win32lib under another > > > > name, > > No, but it should be. I'll put it in. Any suggestions for a good name? How about setMultIndices ?? > > > or is it still the way to do it ? Is there also a way of selecting a > > range > > of items in a list (e.g. from 4 to 9), or all items ? > > Does setIndex( list, {from, to}) work for you? > -- No, this gives the following error; Win32lib.ew:16330 in procedure setIndex() true/false condition must be an ATOM Even a setIndex( list, singlenum) gives a win32lib (v57.9) popup warning error, as follows; sendMessage(#186) in setIndex failed.... This error disappears if I remove the LBS_EXTENDEDSEL from the List control but that of course means no more multi select either. > > cheers, > Derek Parnell > >