Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!mips!nec-gw!sparkle!achan From: achan@sparkle.nec.com (Amy Chan) Newsgroups: comp.windows.x.motif Subject: Re: Can I turn off list selection? Message-ID: <443@nec-gw.nec.com> Date: 29 Jan 91 18:14:48 GMT References: <2610@meaddata.meaddata.com> Sender: news@nec-gw.nec.com Organization: NEC-AM TDD, San Jose, California Lines: 35 In article <2610@meaddata.meaddata.com> sharonc%meaddata@uunet.uu.net writes: >Hello all. I have a situation where I need to display a list of >items but just for informational purposes. Users cannot do anything >with the items in the list, so I would like to turn off selection. >I have tried to fake it out with a scrollable text widget (I need >both horizontal and vertical scrolling) by setting all of the >resource values (i.e. XmNeditable to false, XmNcursorPositionVisible >to false, etc.) But that still did not prevent me from dragging my >mouse over the text and having it highlighted. Even though nothing >can be done with the text once it is highlighted. > >So what I would like to do is set the XmNselectionPolicy on my >list widget to something like NULL, so that the users cannot select >items. If that's not possible, I'd like to know how I can turn >off mouse selection/highlighting on a text widget. > >I'm currently using Motif 1.1 under X11/R4. > If you remove all the existing translations of the list widget by using XtUninstallTranslations(), users will not be able to do anything with the items in the list. Hope this helps. ---------------------------------------------------------------------- Amy Chan NEC America, Inc., San Jose, CA achan@tdd.sj.nec.com