amc@wlv.imsd.contel.com (Allen M. Cohen) (06/11/91)
On Motif 1.1.1 (from ISC), I'm having trouble with the default action in the XmList. I'm using MULTIPLE_SELECTION mode. When one moves the list focus up and down with the arrow keys and hits "Enter", the item within the dashed rectange gets selected alright, but all previous items get deselected! I maintain that it should always be in "add mode". Then when I tried to work around this problem by mapping Enter (and Button2) to the same translations as Button1, it seems that random items got selected when Enter was depressed. I.E.: static char DefaultActionTranslations[] = "<Btn2Down>: ListBeginSelect()\n\ <Btn2Up>: ListEndSelect()\n\ <Key>osfActivate: ListBeginSelect() ListEndSelect()\n\ <Key>Return: ListBeginSelect() ListEndSelect()"; P.S. I map Button2 to the same action as Button1, so that Button2 is my "default action/alternate action" -- I simply look at the Button in the Xevent structure from within my Multiple Seleciton Callback. i.e.: XmListCallbackStruct *cb = (XmListCallbackStruct *) call_data; cb->event->xbutton.button == Button1 or Button2. <> Allen M. Cohen Internet: amc@wlv.imsd.contel.com <> <> 1853 Stonesgate St. UUCP: elroy.Jpl.Nasa.Gov!agi0!allen <> <> Westlake Village, Ca. 91361 Telephone: (805) 498-9611 ext. 195 <> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>