Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!spool.mu.edu!samsung!know!daemon From: pmiller@vttcf.cc.vt.edu (Paul Miller) Newsgroups: comp.sys.amiga.programmer Subject: gadtools for 1.3 Message-ID: <24135@know.pws.bull.com> Date: 30 Apr 91 13:12:14 GMT Sender: daemon@pws.bulL.com Lines: 30 While some of you are discussing compatibility for 1.3/2.0, it may be prudent for CBM to put out a gadtools.library on disk. This need not be 100% 2.0 gadtools.library compatible, as long as all of the relevant gadtools function calls are the same. This way, the code need only do minimal checking for 2.0 availability. As it is, it's silly to have two sets of interface-building calls in your program, but at this point it's a necessary evil, because 1.3-compatibility is currently a must. I am currently working on a module of functions which support 2.0 and 1.3. If 2.0 is present, gadtools calls are used, otherwise, gadtools-like constructs are built from standard 1.3 gadgets and returned to you in a fashion equivalent to 2.0 gadtools. For this unit, you use ONE call which does the work for you - ie. CreateButton() makes a 3D button, and CreateListView() makes a full gadtool ListView Gadget, including slider and arrows - this will function exactly the same under 2.0 and 1.3 implementations. I have already created a module which does this for 2.0 NewMenus. It consists of a set of 2.0-compatible calls which build a 1.3 menu strip from 2.0 NewMenu structures, just like under 2.0. I should be releasing this soon, if there is interest. -- **************************************************************************** * Paul Miller | DISCLAIMER IS BETTER THAN DATCLAIMER * * VIDEOWORKS Computer Applications | ------------------------------------ * * Certified AMIGA Developer | My opinions are mine own, and not * * --------------------------------- | those of those who are not me (um?) * * INTERNET: pmiller@vttcf.cc.vt.edu | - Have a JOLT and a smile! - * * ------------------------------------------------------------------------ * * Origin: MILLIWAYS, The Restaurant at the End of the Universe! (v42) * ****************************************************************************