Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!ucsd!mvb.saic.com!ncr-sd!iss-rb!ivory.SanDiego.NCR.COM!jabir From: jabir@ivory.SanDiego.NCR.COM (Jabir Hussien) Newsgroups: comp.windows.x.motif Subject: application requested extended selection in XmList in Motif 1.0 Message-ID: <1991Mar19.221635.25488@SanDiego.NCR.COM> Date: 19 Mar 91 22:16:35 GMT Sender: @SanDiego.NCR.COM Reply-To: jabir@ivory.SanDiego.NCR.COM (Jabir Hussien) Organization: NCR Corporation, Rancho Bernardo Lines: 24 Hi all, I was wondering if anybody here could help with a problem I am having doing extended (multiple discontiguous) selection in a XmList widget in Motif 1.0 under R3. The problem is that XmListSelectItem/Pos() automatically deselect previous items and there is no XmListSetAddMode() in 1.0. (I tried cheating by setting the AppendInProgress field from ListP.h to True but that didn't help much...) Anybody have any suggestions how to go about doing this? The only way I can think of is to save the selected items list upon every callback and when I want to (de)select some items, I would need to add/subtract these items from the latest selected items list. Then I would XtSetValues() this new list for the XmNselectedItems resource. In the case of thousands of items, this may get very slow... All help appreciated and thanks in advance... Jabir