Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!hrc!uucs1!gaf From: gaf@uucs1.UUCP (gaf) Newsgroups: comp.windows.x.motif Subject: Re: XmScrolledList explodes Keywords: XmScrolledList XmList XmListDeletePos XmListAddItemUnselected Message-ID: <364@uucs1.UUCP> Date: 13 Dec 90 20:52:00 GMT References: <1923@beguine.UUCP> Reply-To: gaf@uucs1.UUCP () Organization: UUCS inc., Phoenix Az Lines: 13 Long ago, when I first started doing Motif programming, I had loads of trouble figuring out listboxes. I don't remember if I fell in the pothole you describe, but I was on the same road (clear all previous items in a listbox, in order to re-add current items). What I found that worked was to set XmNitemCount to 0 via XtSetValues(). It's much easier than deleting the items one by one, and it hasn't given me any strange behavior. -- Guy Finney It's that feeling of deja-vu UUCS inc. Phoenix, Az all over again. ncar!noao!asuvax!hrc!uucs1!gaf sun!sunburn!gtx!uucs1!gaf