Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!sol.ctr.columbia.edu!emory!gatech!mcnc!beguine!Paul.Quane From: Paul.Quane@samba.acs.unc.edu (Paul Quane) Newsgroups: comp.windows.x.motif Subject: XmScrolledList explodes Keywords: XmScrolledList XmList XmListDeletePos XmListAddItemUnselected Message-ID: <1923@beguine.UUCP> Date: 12 Dec 90 19:14:04 GMT Sender: usenet@beguine.UUCP Lines: 26 Motif 1.0 X11R3 on HP-UX and Interactive Hi, I'm having a problem which I would appreciate some help with. I create a scrolled list ( using XmCreateScrolledList , visible item count 5 , no items initially, rest default ) in a form in a dialog. Each time I manage the dialog I delete any existing items using XmListDeletePos and then create a new list using XmListAddItemUnselected specifying position 0. This seems the best way to do it as the list of items may vary a lot between each dialog manage. The problem arises when the user uses the scrollbar to peer at items which are not initially seen due to the visible item count being 5. Nothing happens right away, but the next time the dialog is managed the scrolled list widget goes crazy. The only parts that appear are the top shadow and the top arrow and there are no items in the list and the dialog is far longer than the sceen height ( greater than twice ?). It looks like the scrolled window decides to have an infinite height! Anybody ever had anything like this happen ? Now some for further investigation....... Paul Quane