nlewispn@cc.curtin.edu.au (Peter N Lewis) (05/17/91)
Hello All, Here is an interesting tail about the List Manager. I was working late into the night trying to get the list manager to work (which is in fact really easy, and the only reason it took any time was because I had a slight bug in my update routine that caused me to call BeginUpdate with the incorrect window - booooom!). Anyway, I got it working, and then I noticed that if I made a selection, say I select items 1,2,3,4 then I click in item 5, everything works great, and I end up with item 5 selected. But if instead I click in item 2, and drag it deselects anything I drag over (if I click in 2, and drag down to 5, I end up with 1 & 5 selected). I play around for a bit, check out the list selection flags, which is correctly zero and I cant find anything wrong. So I say to myself (its late remember) - "Who else uses the list manager to handle multiple selections? Ahh Ha! Font/DA Mover!" So I go look at it, and sure enough it works fine. Drats. Must be my fault. So I go play some more, still cant find anything. Then it dawns on me (no it wasnt that late!). Font/DA Mover is an Apple product! It probably doesnt even call the list manager! Quick check with macsbugs reveals that it doesnt! So what else uses the list manager, search thru the archives a bit... Open File Spy, and StuffIt 1.5. And low and behold, they have the same problem!!!!! Well, thats the story. Now the questions... Is there a simple way to get round this? Has anyone else come across this? Is this a bug? Can someone try this in System, 7? (It does the same thing under System 6.0.2 and 6.0.7) I got round it by (before calling LClick) checking if the click was in the body of the list (not the scroll bars), and there was no shift or command keys held down, deselecting everything in the list. Of course, this is a total kludge, but can anyone else suggest a solution? TIA for any info, Peter. -- Disclaimer:Curtin & I have an agreement:Neither of us listen to either of us. *-------+---------+---------+---------+---------+---------+---------+-------* Internet: Lewis_P@cc.curtin.edu.au I Peter Lewis Bitnet: Lewis_P%cc.curtin.edu.au@cunyvm.bitnet I NCRPDA, Curtin University UUCP: uunet!munnari.oz!cc.curtin.edu.au!Lewis_P I GPO Box U1987 PSImail: psi%050529452300070::Lewis_P I Perth, WA, 6001, AUSTRALIA Has anyone ever found someone who used a Mac and then Changed To a PC?