Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!hplabs!hpcc05!hpcuhb!hpcilzb!bazavan From: bazavan@hpcilzb.HP.COM (Valentin Bazavan) Newsgroups: comp.windows.x.motif Subject: Re: Selection in list widget Message-ID: <17100002@hpcilzb.HP.COM> Date: 10 Oct 90 14:04:43 GMT References: Organization: HP Design Tech Center - Santa Clara, CA Lines: 11 There is no direct way, but it is possible. First, you have to retrieve XmNselectedItems, XmNselectedItemCount, XmNitems and XmNitemCount resources using XtGetValues. Then you take each item in the XmNselectedItems list and compare it against the XmNitems list using XmStringCompare. When a match occurs, the list position is the index of the matched item in the XmNitems list plus one. Valentin Bazavan vbazavan@hpdtc.hp.com