Checksum: 32003 Path: utzoo!utgpu!mms From: mms@gpu.utcs.toronto.edu (John J. Chew III) Date: Wed, 20-Jan-88 02:58:04 EST Message-ID: <1988Jan20.025804.9886@gpu.utcs.toronto.edu> Organization: The Poslfit Committee Newsgroups: comp.sys.mac Subject: Re: Sorting resources and a question about the list manager References: <6577@jade.BERKELEY.EDU> <7914@eddie.MIT.EDU> Reply-To: mms@gpu.utcs.UUCP (John J. Chew III) In article <7914@eddie.MIT.EDU> zrm@eddie.MIT.EDU (Zigurd R. Mednieks) writes: > In article <6577@jade.BERKELEY.EDU> jmm@thoth8.berkeley.edu () writes: > >Question 2: Is there a way to create a list without creating it in a specific > >window? I have a dialog that has two different lists, and the second list > >displayed depends on what is selected in the first list. I'd like to be > >able to generate all of the lists at once, and then display them when needed. > > > I suspect the reason the List Manager wants a window pointer when a > list is created is that it has to tell the window about its scroll > bar. A way to get around this is to not draw the list until you need > it. (Passing FALSE in the parameter DrawIt when you create the > list.) Then, when you are done adding elements to it, use the LDoDraw > call to turn drawing on, and call LUpdate to actually cause it to > draw. I haven't received jmm's original posting here yet, but concerning the above: I believe that the drawIt flag passed to LNew() and subsequently controlled by LDoDraw() affects only the drawing of the cells themselves and not the scroll bar(s), giving you something that looks like an empty list. I was about to suggest that you first draw the list somewhere outside the dialog's visible region (similar to HideDItem()) except that of course there is no easy way to move a list once installed. I suppose you could SetDItem the list to another location, change its rView field and MoveControl its scroll bars, but it seems awfully messy... jjc -- john j. chew (v3.0) poslfit@gpu.utcs.toronto.edu +1 416 463 5403 (300/1200 bps) poslfit@utorgpu.bitnet {cbosgd,decvax,mnetor,utai,utcsri,{allegra,linus}!utzoo}!utgpu!poslfit "Script-G for open, sub-delta for durchschnitt"