Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!alphalpha.com!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: Selection Box Widget Message-ID: <9007260154.AA08845@alphalpha.com> Date: 26 Jul 90 01:54:33 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 30 > I am creating a selection box widget with a list of items. Once a single > item selection has been made, I want to be able to "de-highlight" that > selection. I've tried to reset the following attributes of the selection > box without any luck: > > XtSetArg (Args[n], XmNlistItems, line_item); n++; > XtSetArg (Args[n], XmNlistItemCount, number_of_items); n++; > XtSetValues(stream_selection_box, Args, n); Maybe I'm missing something. What do these SetArgs have to do with dehighlighting a selection? Don't you just want XmListDeselect[AllItems/ Item/Pos]? Or is the problem the initial one of putting things into the list at all? In that case I'd use XmListAddItem[Unselected], I'm not sure how the resource equivalents work. (Motif has a bunch of cases where a function seems to do exactly the same thing as a resource. I have no idea why, but I tend to go with the function on the assumption that someone created it for a reason.) Alphalpha Software, Inc. | motif-request@alphalpha.com nazgul@alphalpha.com |----------------------------------- 617/646-7703 (voice/fax) | Proline BBS: 617/641-3722 I'm not sure which upsets me more; that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. -------