Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!dlyons From: dlyons@Apple.COM (David A Lyons) Newsgroups: comp.sys.apple2 Subject: Re: ListControl Question Message-ID: <53578@apple.Apple.COM> Date: 3 Jun 91 13:43:26 GMT References: Distribution: comp Organization: Apple Computer Inc., Cupertino, CA Lines: 26 In article tooly@zelator.uucp (Theo Schneider) writes: >[...] >then i set the Pointer in my memRec to this String. Then i create >via NewList2 the List. All work fine but in the ListControl on the >Screen you see all Numbers twice like this example : > > _____________ > | 1 1 | | > | 2 2 | | > | 3 3 | | > --------------- Maybe this is the problem, maybe not: Make sure you have set the port to the window containing your list control, before making a call like NewList2. (This is mentioned in GS Technical Note #24.) If your window has frame scroll bars, then try StartDrawing instead of SetPort, since StartDrawing will set your port's origin according to the scroll bars. -- David A. Lyons, Apple Computer, Inc. | DAL Systems Apple II System Software Engineer | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie:DAVE.LYONS CompuServe:72177,3233 Internet:dlyons@apple.com My opinions are my own, not Apple's.