Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!ucsd!ucbvax!osf.org!meeks From: meeks@osf.org (W. Scott Meeks) Newsgroups: comp.windows.x.motif Subject: Re: XmScrolledList explodes Message-ID: <9012211557.AA04750@osf.osf.org> Date: 21 Dec 90 15:56:59 GMT References: <1990Dec18.173824.3711@sqwest.sq.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 21 >From: julius.cs.uiuc.edu!wuarchive!cs.utexas.edu!news-server.csri.toronto.edu!helios.physics.utoronto.ca!ists!yunexus!hydroesm!jtsv16!torsqnt!geac!sq!sqwest!brad@apple.com (Brad Might) > > if you set itemCount to 0, do you also have to > delete the list items, does the widget delete them, > or have you thrown them to the wolves ? > >brad If you set XmNitemCount to 0 in an XmList the current behavior is for the widget to delete the old list items. It is also recommended that you set XmNitems to NULL simultaneously as is implied to be necessary by the AES in case of future changes to the implementation. After the release of 1.1.1, XmListDeleteAllItems will be safe to use and will be the recommended method for clearing a list. Let me know if there are any questions. W. Scott Meeks Open Software Foundation meeks@osf.org (617) 621-7229