Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!voder!wlbr!wlv.imsd.contel.com!amc From: amc@wlv.imsd.contel.com (Allen M. Cohen) Newsgroups: comp.windows.x.motif Subject: Delete and rebuild items of XmList Message-ID: <1991Jan2.183113.2111@wlbr.imsd.contel.com> Date: 2 Jan 91 18:31:13 GMT Sender: news@wlbr.imsd.contel.com (news) Reply-To: amc@wlv.imsd.contel.com (Allen M. Cohen) Distribution: usa Organization: Contel Federal Systems Lines: 12 Nntp-Posting-Host: wlv.imsd.contel.com What is the fastest way to delete all items in a list widget and replace them with an entirely new set of items? (I am using Motif 1.0 under ISC unix 2.2). Currently, I'm doing: 1) XmListDeletePos in a loop to delete all the items. 2) XmListAddItemUnseleted to put the new items in. The latter is incredibly slowwwwww. <> Allen M. Cohen Internet: amc@wlv.imsd.contel.com <> <> 3041 E. Black Hills Ct. UUCP: elroy.Jpl.Nasa.Gov!agi0!allen <> <> Westlake Village, Ca. 91362 Telephone: (805) 498-9611 ext. 195 <> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>