nazgul@alphalpha.com (Kee Hinckley) (07/09/90)
Every single function has a version for by position and a version for by item, yet things like addItem of course only work with a position, and since there is no conversion from item to position or vice versa, I have no way (other than getting the whole list and doing it myself) of simply *replacing* an item. Drugs. I don't know what's in 1.1 (how many times have I said that?) but if I were doing it I'd obsolete all of the Item calls, and add a call called "XmListGetPos" which takes an XmString and returns its position in the list. Of course then you have to worry about duplicate strings, but that isn't solved with the existing calls either. (I solve it by appending a unique number to each string in the list - in a font which has zero width numbers.) Given that call I can do a replace (albeit inefficiently) by doing a delete and then an add. -kee Alphalpha Software, Inc. | motif-request@alphalpha.com nazgul@alphalpha.com |----------------------------------- 617/646-7703 (voice/fax) | Proline BBS: 617/641-3722 I'm not sure which upsets me more; that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. -------