Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!lgc.com!usenet From: cl@lgc.com (Cameron Laird) Newsgroups: comp.windows.x.motif Subject: Is position n selected? Keywords: XmList, position, selected Message-ID: <1991Apr18.212904.21529@lgc.com> Date: 18 Apr 91 21:29:04 GMT Sender: usenet@lgc.com Organization: Landmark Graphics Corp., Houston, Tx Lines: 38 Nntp-Posting-Host: forest.lgc.com Two paragraphs of background: I still don't have a refined X spirituality, or all the references I need (two distinct items). Finding which functions, resources, and so on, are standard, and which are not, constantly surprises me. 'Pologize if this is in the FAQ. I still haven't *seen* the FAQ. 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; } ? Here are my observations: 1. this is only significant for MULTIPLE_SELECT XmLists; 2. the only way I see to do this involves writing my own handler, in some callback, to store away the current state of the selections; but 3. this information *must* be available in some (lower- level?) resources; it sure looks to me as though the window manager knows which items are selected, and which aren't. Do you understand my question? Is there a clean way to answer it? Is there a standard way? -- Cameron Laird +1 713-579-4613 cl@lgc.com (cl%lgc.com@uunet.uu.net) +1 713-996-8546