home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!uuhelio!jpf
- From: jpf@uuhelio.uucp (Jeff Francis)
- Subject: Re: A Better Programming Interface for OLIT?
- In-Reply-To: jipping@cs.hope.edu's message of Fri, 18 Dec 1992 14:51:24 GMT
- Message-ID: <JPF.92Dec18232713@uuhelio.uuhelio>
- Sender: jpf@uuhelio.uucp (Jeff Francis)
- Organization: HelioCentric Software
- References: <1992Dec18.145124.28204@cs.hope.edu>
- Date: Sat, 19 Dec 1992 05:27:13 GMT
- Lines: 71
-
- "finer grain" sounds good to me! For example, in XView the "Panel
- Item Label: Panel Item Value" is easy to setup. In OLIT one is
- constantly having to create a Caption widget, label it, and then
- create and manage a value widget kid inside it. Pain.
-
- To answer your question "Is there a better programming interface for
- OLIT?" Yes, try Wcl. It's not really another API but it is a much
- cleaner way to wip together Xt-based interfaces.
-
- While we're on the subject of the crufty OLIT API I'll add a few
- comments. Here's some OLIT Widget/API complaints.
-
- 1. How about the overall lack of a naming prefix. I previously
- used Motif which always uses the Xm prefix for naming things. OLIT is
- rather loose in naming things. Sometimes they use Ol... and sometimes
- they don't.
-
- 2. Then there is the OlDefine type that adds little value. For
- example, the AbbrevMenuButtonWidget's XtNlayoutType is of type
- OlDefine and might take on the values:
-
- [0-18 deleted]
- #define OL_FIXEDCOLS 19
- #define OL_FIXEDROWS 21
- [22-150 deleted]
-
- Why not something more explicit like:
-
- typedef enum {
- OL_FIXEDCOLS,
- OL_FIXEDROWS
- } XolLayoutType;
-
- Other Widgets do much of the same. Sure, it might have taken
- the OLIT team a day or two more to code things this way. But, it
- could save OpenLook.h readers hours of wondering.
-
- 3. Then there is the ScrollingList. What a cleaver idea making the
- insert/delete routines resources. What a pain it is to use them. My
- first OLIT to-do was to write the list routines that the OLIT team
- should have. And where's the glyph support that XView has.
-
- 4. Ever try putting a child in a DrawArea and then performing a
- geometry operation on the child? Crash.
-
- 5. Then there is OlAddCallback. Some OLIT manpages say to use it
- versus XtAddCallback. man OlAddCallback yields, "No manual entry for
- OlAddCallback". What does OlAddCallback do?. How about providing
- _all_ the Xt manpages.
-
- 6. Anyone care to give-up the secret of the Category widget or any of
- the other undocumented classes?
-
- 7. The Form widget. Yes, it's a four letter word starting with 'F'.
-
- 8. ... that's enough for now.
-
- Anyway, I sure would like to see Jim Mukerjee, SunSoft's Windows
- Toolkits Product Manager, follow-up on his comment,
-
- We strongly encourage developers to use OLIT for any NEW
- applications that are being developed to take advantage of many new
- features and functionalities, and maintain compliance with the rapidly
- evolving STANDARDS for GUI development.
-
- Jim, how about a word or two on the "many new feature and
- functionalities"? Or will we need to wait for OpenWindows 4.0?
-
-
- --
- Jeff Francis, HelioCentric Software, uunet!uuhelio!jpf, (515) 232-1300
-