Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!ncar!dinl!snow From: snow@dinl.uucp (john snow) Newsgroups: comp.sys.mac.programmer Subject: Re: List Manager Problem Summary: I got problems, too! Message-ID: <855@dinl.mmc.UUCP> Date: 14 Mar 89 22:14:55 GMT References: <11032@ut-emx.UUCP> <6704@hoptoad.uucp> <11103@ut-emx.UUCP> <936@lts.UUCP> Organization: Martin Marietta I&CS, Denver, CO. Lines: 28 With the current interest in List Manager problems I thought I would check my system out to see how it worked. Well, it doesn't. Based on some previously posted code, I tried the following: init_process(); /* do all the initialization */ make_window(); SetRect (&Bounds, 0, 0, 1, 0); /* Specify initial 1x0 list*/ SetPt (&cSize, 0, 0); /* calculate the cell cSize */ View.right -= 16; /* Allow for scroll bars */ hList = LNew (&View, &Bounds, &cSize, 0, myWindow, FALSE, FALSE, FALSE, TRUE); View.right += 16; (**hList).selFlags = lDoHAutoscroll + lOnlyOne; LAddRow(10,0,hList); /* Insert rows */ for (x = 0; x < 10; x++) { SetPt (&Where, 0, x); /* select the cell */ LSetCell (Msgs[x], strlen(Msgs[x]), &Where, hList); } LDoDraw (TRUE, hList); Nothing crashes, and I do get the scroll bar, but nothing else is displayed. If I go back with LGetCell after LSetCell, it says there is nothing there. Msgs is an array of strings, and it doesn't matter what size the initial list is set for. Whats going on here??? John Snow