From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,63585ba5c5be8595 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Ada to Motif bindings Date: 2000/04/05 Message-ID: <8cfssa$9kh$1@nnrp1.deja.com>#1/1 X-Deja-AN: 607144393 References: <38E8E8CE.81EC851F@mitre.org> <38EAC651.1DD94F40@home.com> <8cffvp$q0s$1@nnrp1.deja.com> <38EB67AE.812FD691@businessobjects.com> X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Apr 05 17:24:47 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-04-05T00:00:00+00:00 List-Id: In article <38EB67AE.812FD691@businessobjects.com>, Marc CHEVRIER wrote: > > You can also try a pure Ada approach for your Motif programming. > Have a look to http://ourworld.compuserve.com/homepages/topgraphx The problem with a "pure" Ada approach is that its a lot tougher to integrate with a GUI builder. Anyone seriously developing GUI's these days uses some sort of GUI builder (or they have *very* patient clients). All decent Motif GUI builders are capable of saving and reading UIL code, so you have your choice of tools. This approach allows you to: o Modify GUI source code directly for small tweaks without having the next run of the builder wipe out your work. o Switch GUI builders later if you want or need to without having to rewrite or redraw anything. o Cleanly separate the GUI development effort from the application effort. o Only create objects in your Ada code for widgets that you need to read or modify directly from the application (usually a very small subset of all the widgets in a Motif application). o Develop your own Motif bindings piecmeal on an as-needed basis. o Detect many GUI coding errors at (UIL) compile time rather than runtime. So what are the drawbacks? Loading UID files takes a bit of time while the file gets interpreted and all the widgets get created. In a normal Motif app you could amortize this time by only creating widgets as they are first needed. So you trade startup time for runtime. You can't use any special features of your GUI builder that go outside the bounds of Motif. So here you potentially trade functionality for portability. That's about it, and I can usualy agree with both of those trade-offs. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.