Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x.motif Subject: Re: Is position n selected? Keywords: XmList, position, selected Message-ID: <1991Apr18.150819@wsl.dec.com> Date: 18 Apr 91 22:08:19 GMT References: <1991Apr18.212904.21529@lgc.com> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 21 In article <1991Apr18.212904.21529@lgc.com>, cl@lgc.com (Cameron Laird) writes: |> My question: how do I write |> BOOL XmListPosSelected_p(listWidget, position) |> Widget listWidget; |> int position; |> { |> /* The entry is selected ... */ |> if (...) |> return TRUE; |> else |> return FALSE; |> } Check the XmNselectedItems resource and/or XmListGetSelectedPos() convenience function. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee