Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!widener!ukma!hsdndev!bunny!bunny.gte.com!CAH0 From: CAH0@bunny.gte.com (Chuck Hoffman) Newsgroups: comp.sys.mac.programmer Subject: List Manager (for the new guy) Message-ID: <11198@bunny.GTE.COM> Date: 23 May 91 21:02:25 GMT Sender: news@gte.com Organization: GTE Laboratories, Inc. Lines: 36 The following code produces nothing in my window. Using THINK C 4.0, System 6.0.7. The "cellSize" item in the ListRec seems to be blown. Can anyone help? Rect rView = {20,20, 145,110}; Rect dataBounds = {0,0, 2,12}; Point cSize = {40,40}; int myRow; char testStuff[] = "\pHow about this?"; Point testCell = {0, 0}; ListHandle theList; . . SelectWindow (myWindTab[helpWindSub].myWindPtr); . . SetPort (&myWindTab[myWindSub].myWindRec.port); TextFont(geneva); TextSize(10); theList = LNew(&rView, &dataBounds, &cSize, NIL, myWindTab[myWindSub].myWindPtr, TRUE, FALSE, FALSE, FALSE); LSetCell (&testStuff[1], (int) testStuff[0], &testCell, theList); LDraw (&testCell, theList); InvalRect (&myWindTab[myWindSub].myWindRec.port.portRect); . . (later LUpdate in response to Update Event in main event loop) Chuck Hoffman, GTE Laboratories, Inc. | I'm not sure why we're here, cah0@bunny.gte.com | but I am sure that while we're Telephone (U.S.A.) 617-466-2131 | here, we're supposed to help GTE VoiceNet: 679-2131 | each other. GTE Telemail: C.HOFFMAN |