Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!turnkey!orchard.la.locus.com!prodnet.la.locus.com!jfr From: jfr@locus.com (Jon Rosen) Newsgroups: comp.windows.x.motif Subject: Re: Use of XmList widget without selection Keywords: List Message-ID: <24510@oolong.la.locus.com> Date: 17 May 91 17:18:38 GMT References: <33292@shamash.cdc.com> Organization: Locus Computing Corp, Los Angeles Lines: 19 In article <33292@shamash.cdc.com> slc1290@hare.udev.cdc.com (steve chesney x4662) writes: >Our application has a possible use for something like the XmList widget to >display narrative text. (This text is reference only, so a text widget IMHO is >inappropriate). The List widget comes with behavior that allows the user to >select from the list. I cannot find a way to turn this behavior off as >selection makes no sense in this context. Is there a straightforward way >(straighter than playing with highlight color resources) to turn off selection >in a list? I don't think you want to use an XmList widget. If I understand you correctly, you want to use a widget to display narrative text read-only (i.e., your comment that it is for reference only...) The XmList widget is explicitly for selection purposes. While you presumably could go in an override al the translations and shut off the selection mechanism, it would be simpler to use an XmText widget and set XmNeditable to False. This says the text widget can not allow editing (i.e., read-only). We do this with our help screens and it works fine. Jon Rosen