Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!well!mjf From: mjf@well.sf.ca.us (Marty Fried) Newsgroups: comp.sys.mac.programmer Subject: List Mgr with TCL Summary: lUpdate problem Keywords: TCL, List Manager Message-ID: <25064@well.sf.ca.us> Date: 27 May 91 19:01:18 GMT References: <1991May22.124357.5348@bmers95.bnr.ca> <13641@goofy.Apple.COM> Distribution: usa Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 27 Can anyone offer advice on using the List Mgr with TCL? I am using it in a floating window, and have at least one problem. It won't display the list until I resize the window. It then works fine until I either obscure certain parts of it, or re-enable it after switching to another window (which makes this one disappear). The lUpdate function gets called, but nothing happens. I've been able to make it display initially, by using a begin/end update, but then it just sits there and ignores me (it does get sent the lClick message, though). Could it have something to do with the update regions? I'm still somewhat of a novice, and I don't fully understand how this works. Is there more than one update region? It seems like there may be. Are they available for viewing in the debugger? One thing that confuses me. The lUpdate function requires the ListHandle and the RgnHandle. Is the RgnHandle the same one that is available by examining the port structure in the list record? If so, why pass both, when just the listHandle should suffice? To use the LM, I did a subclass of CWindow, and added the code for lUpdate, lActivate, and lClick to the CWindow's appropriate (I think) methods. I've tried various orders of doing this, but nothing seems to fully work. Does my strategy make sense? Do I make sense? :) I would be very grateful if anyone can give me suggestions. I've read and reread everything I could find on the subject, with no help. And once I resize the window, it works correctly. BTW, it is a color-selection palette, that displays colors in boxes, with the name of the color adjacent to the box. Marty Fried +-+-+-+-+-+-+-+-+-+-+-+ SlideTek, Inc. + This space for rent + Sausalito, Calif. +-+-+-+-+-+-+-+-+-+-+-+