🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #23698

Re: Sorting resources and a question about the list manager

#23698
From: Zigurd R. Mednieks
Date: Sun, 17 Jan 1988 14:49
22 lines
1451 bytes
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.

Have fun,
-Zigurd
-- 
------------------------------------------------------------------------
Zigurd Mednieks		   MURSU Corporation		(617)424-0146
			   25 Exeter Street
			   Boston, MA 02116
Technical Details
Message-ID: <7914@eddie.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!husc6!mit-eddie!zrm
References: <6577@jade.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!husc6!mit-eddie!zrm
From: zrm@eddie.MIT.EDU (Zigurd R. Mednieks)
Newsgroups: comp.sys.mac
Subject: Re: Sorting resources and a question about the list manager
Message-ID: <7914@eddie.MIT.EDU>
Date: 17 Jan 88 14:49:16 GMT
References: <6577@jade.BERKELEY.EDU>
Reply-To: zrm@eddie.MIT.EDU (Zigurd R. Mednieks)
Organization: MIT, EE/CS Computer Facilities, Cambridge, MA
Lines: 22