home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / desklib / Docs / Updates < prev   
Text File  |  1993-07-15  |  20KB  |  441 lines

  1. Updates between DeskLib versions:
  2.  
  3. 2.03 (July 1993) -------------------------------------------------------------
  4.  
  5. Important - Please note that Event_ and Wimp.h now support more RISC OS 3
  6. functionality. Specifically, Wimp_Initialise has a new parameter (message
  7. list) on the end - to re-link with this version of the library, you will need
  8. to upgrade any Wimp_Initialise calls in your code (add a NULL onto the end of
  9. the list of parameters to Wimp_Initialise). You can of course take this
  10. opportunity to upgrade your code to use the new features the RISC OS 3
  11. makes available. Note that you'll also need to use LibFile to re-make the
  12. WimpLib if you use it separately.
  13.  
  14. Along similar lines, you can now call Event_Initialise3() in place of
  15. Event_Initialise to do a proper RISC OS 3 Wimp_Initialise, passing in a
  16. list of accepted messages, etc. Event_Initialise provides the same (RISC OS 2)
  17. functionality as before.
  18.  
  19.  
  20. MISCELLANEOUS modifications
  21.   Modified the Libraries.!MakeDLib obey file. Each sublibrary is now compiled
  22.   by invoking an alias 'DLibMake', which makes the file shorter and more
  23.   readable, and also allows you to more easily modify the way in which
  24.   sublibraries are compiled.
  25.  
  26.   Modified the Clean obey files - they now won't abort if a file is missing.
  27.  
  28.   Modified the Makefiles to make everything tidier.
  29.   Now, in the obey file Libraries.!MakeDLib, you can set 3 amu variables:
  30.     x_cflags - c compiler extra flags
  31.     x_aflags - objasm extra flags
  32.     do       - What to do to create the sublibrary
  33.  
  34.   This allows you to do some important things:
  35.     x_cflags=-Ff
  36.       This is the new default, which reduces the library code size by about 5%.
  37.       However, when debugging, you may like to recompile the library with the
  38.       'f' removed, so that you can find the names of the functions being
  39.       called as you debug.
  40.  
  41.     do="Create $@ 1"
  42.       This will minimise disc space used by the library (by creating 1-byte
  43.       'sublibraries' instead of compiling them properly - the file is needed
  44.       so amu knows the sublibrary is up to date)
  45.  
  46.     do="LibFile -c -o $@ @.o.*"
  47.       This will create each sublibrary - you can then use the sublibrary files
  48.       to link with instead of the main DeskLib library (eg WimpLib is quite
  49.       handy on its own, and is only 18kB rather than DeskLib's >100kB, a very
  50.       useful thing if you're developing of floppies!)
  51.  
  52.  
  53.   Updated the TestApp- now does the following extra things:
  54.     * Uses outline fonts, and gets them right if you change screen modes
  55.     * Changes the window title if you click the menu item 'Change title'
  56.       when you brought the menu up from a window (else that item is shaded)
  57.  
  58.  
  59. BUGS which have been fixed:
  60.   Font
  61.     Fixed a major set of bugs due to a small and harmless-looking typo in the
  62.     Font sublibrary - most of the font calls would return a non-zero value
  63.     if no error occurred, and a zero value if an error occurred (i.e. the
  64.     opposite of what they should have been doing: MOVVS r0, #0 instead of
  65.     MOVVC r0, #0)
  66.     This affects most font calls, but you'll only notice a difference if you
  67.     check the returned error - the SWIs worked fine, but returned incorrect
  68.     error-return-values - all other return values were unaffected.
  69.  
  70.   ColourTrans, DragASprite
  71.     Similar problems were also removed from the assembler veneers for the
  72.     ColourTrans, DragASprite, and PopUp sublibraries - namely that the return
  73.     values were not consistent with the definitions given in the headers.
  74.     I'll keep a closer eye on this in future!
  75.  
  76.   Icon
  77.     Icon_BarIcon, Icon_GetText, Icon_Set(Integer/Double/Text), Icon_printf
  78.     previously did not correctly terminate strings correctly if they were too
  79.     long to fit in the icon.
  80.     Icon_BarIcon now uses sprite_MAXNAME rather than wimp_MAXNAME for copying
  81.     the sprite name (though these constants are both 12, so there is no
  82.     effective difference)
  83.  
  84.   Menu
  85.     No longer trashes your machine with indirected menu items (Menu_New)
  86.  
  87.   PopUps
  88.     'bugs' removed from the PopUp.h header file's example code segments
  89.     SWI veneers fixed up - they didn't quite correspond to the prototypes
  90.     given in the headers.
  91.  
  92.   Template_Clone
  93.     Now terminates copied strings properly.
  94.  
  95.  
  96. MODIFICATIONS
  97.   Error
  98.     Upgraded OtherSrc.c.Error and Error.h to new code submitted by P.Colmer.
  99.     Now Error_Report and Error_ReportFatal (and "Internal" versions of these)
  100.     take variable arguments - they can still be used exactly as before, but
  101.     you can now include any 'printf' style arguments to save having to
  102.     pre-assemble a string to pass in.
  103.  
  104.   Event
  105.     Upgraded Event_Initialise to call the new function Event_Initialise3
  106.     with a required WIMP version of 200 (RISC OS 2 WIMP), to add support
  107.     for RISC OS 3, and the new non-zero-pollword events.
  108.  
  109.   Resource
  110.     This has now been moved from Misc to its own (Resource) sublibrary.
  111.     Also added replacement call for Resource_Initialise,
  112.     Resource_InitialisePath, which allows you to use DeskLib functions
  113.     to load Templates, messages, etc. from a path ("AppName:Templates")
  114.     rather than a directory ("<AppName$Dir>.Templates") - useful for adding
  115.     support for internationalisation.
  116.  
  117.   Template
  118.     Added support into Template_Clone for a new 'maxtitlesize' value of
  119.     template_TITLEMIN (-1) which will allocate as much room for the title
  120.     as declared in the template definition.
  121.  
  122.     Added support for outline fonts into Template loading.
  123.     (See the end of Template.h for details of the new calls)
  124.  
  125.   Template, Handler, Window
  126.     Added code to fix any windows/templates you are using which contain icons
  127.     using outline fonts whenever a mode change necessitates it (On some mode
  128.     changes outline fonts will otherwise become the wrong size as the font
  129.     manager doesn't re-cache them).
  130.  
  131.     This functionality required addition of:
  132.     Font.c.LoseAll         Lose all fonts in a Template_Load style font
  133.                            usage array
  134.     Handler.c.ModeChange   Replacement for old ModeChange handler - does the
  135.                            same as before, but if you are using outline fonts
  136.                            (you have called Template_UseOutlineFonts()) it
  137.                            fixes all your fonts if necessary. Note that this
  138.                            only works on templates loaded with Template_ calls
  139.                            and windows opened with Window_ calls.
  140.     Template.c.UseOutFont  Function to call BEFORE Template_LoadFile to set up
  141.                            a font usage array and exit-handler to lose any fonts
  142.                            you were using.
  143.     Window.c.ModeChange    Function to call to fix outline fonts in all windows
  144.                            and templates. Called by Handler_ModeChange()
  145.  
  146.     Appropriate changes have been made to the relevant header files.
  147.  
  148.   Wimp SWI veneers
  149.     WimpSWIs.s.Wimp01 (Wimp_Initialise) has now been modified to support
  150.     the new RISC OS 3 parameter (the message list). This call is still
  151.     RISC OS 2 compatible, but those of you calling Wimp_Initialise directly
  152.     will need to add a NULL onto the end of your initialise call, e.g.
  153.       Wimp_Initialise(&version, "MyTask", &taskhandle);
  154.     will become:
  155.       Wimp_Initialise(&version, "MyTask", &taskhandle, NULL);
  156.  
  157.   Window
  158.     As well as the additions mentioned in the bit above,
  159.     changes have also been made to the internal window information structure
  160.     as used by the Window.c files. (The window template name is now
  161.     WIMP_MAXNAME+1 characters long (13) rather than 9 characters long)
  162.  
  163.  
  164.  
  165. ADDITIONS
  166.   Event
  167.     Added Event_Initialise3() to Event.c.Event. This more or less replaces
  168.     Event_Initialise with a new call that will initialise the RISC OS 3 WIMP
  169.     and allow you to pass in the list of desired messages. You should not use
  170.     Event_Initialise with WIMP version numbers greater than 200 - use
  171.     Initialise3 instead. [If you desire RISC OS 2 compatability, you MUST
  172.     call Event_Initialise]
  173.     This also allows the support for non-zero pollword events now available
  174.     under RISC OS 3. Thanks to P.Colmer.
  175.  
  176.   File
  177.     Added File sublibrary, which gives calls