Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!atlantis.coral.com!don From: don@atlantis.coral.com (Don Dewar) Newsgroups: comp.windows.x.motif Subject: Is position n selected? Message-ID: <9104221101.AA05265@atlantis.coral.com> Date: 22 Apr 91 11:01:01 GMT References: <910419201549.13018@sun.alfalfa.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 61 ) Return-Path: ) To: jfr@prodnet.la.locus.com (Jon Rosen) ) Cc: motif@alfalfa.com ) Subject: Re: Is position n selected? ) In-Reply-To: <23654@oolong.la.locus.com> ) References: <1991Apr18.212904.21529@lgc.com>, <1991Apr18.150819@wsl.dec.com>, <1991Apr19.150134.22593@lgc.com>, <23654@oolong.la.locus.com> ) X-Mailer: Poste 1.0 B6 ) From: uunet!alfalfa.com!nazgul (Information Junkie) ) Date: Fri, 19 Apr 91 20:15:49 -0400 ) Encoding: 20 TEXT, 7 TEXT SIGNATURE ) ) > Frankly (hope you OSF guys are listening), there is too much repetition ) > and not enough simple explanation in the Motif reference (1.0 and 1.1) ) > manual... They obviously got carried away by the use of computer editors ) In fact I would skip the XmCreate calls. They all have the same signature ) and don't add any useful information. ) ) > I think that Motif is seriously deficient in not having a sorted ) > XmList capability... ) Sorted by what, in what language using what facilities? The only way ) to do this right is probably to add the ability to tuck a pointer in ) associated with each list item, and then be able to add one (or better ) yet, N) compare functions to the list to be used when items are added. ) I just layered that on top of the existing List. List has enough troubles ) right now without adding more functionality. ) ) As for XmText. Doing full international support is non-trivial, although ) the Mac does do it now. But OSF has nowhere near the resources that ) Apple has. I must say though, anyone who thinks that multi-font output, ) and support for multi-megabyte text (which the Mac does *not* do in their ) text edit widget) has to be slow should go use Apollo's Display Manager. ) ) Alfalfa Software, Inc. | Poste: The EMail for Unix ) nazgul@alfalfa.com | Send Anything... Anywhere ) 617/646-7703 (voice/fax) | info@alfalfa.com ) ) 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. ) ) I have to agree with this. Although we have implemented sorted lists in a set of specific instances in our application, it is not easy to do generally. Throw in international support and it becomes an exercise in futility. I think the diverse needs required in sorted lists, even for the simple cases, makes this a feature best left to the programmer on a case by case basis. +---------+ | Coral | |@@@@@*@**| |@@*@@**@@| Don Dewar |*@@**@@@@| Coral Network Corporation, Marlborough, MA |@***@@@@@| Internet: don@coral.com |@@**@@@@@| Phone: (508) 460-6010 |*********| Fax: (508) 481-6258 |Networks | +---------+