home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / showcini.sit / ShowCInit / ShowCInit.doc < prev   
Encoding:
Text File  |  1989-03-20  |  8.1 KB  |  92 lines  |  [TEXT/MSWD]

  1. --------------------------------------------------------------------------
  2. ShowCInit¬ 1.1
  3. ---------
  4. Written by:
  5. Joseph J. Sternlicht and Andrew Diaz
  6. --------------------------------------------------------------------------
  7.  
  8.  
  9. About ShowCInit.
  10. ----------------
  11.  
  12. ShowCInit is a precompiled INIT which displays color or black&white icons on the desktop at startup. It is fully compatible with ShowInit (or "Thanks Paul") and the Mac family (with the possible exception of those with 64K ROMs). It also provides seven additional features:
  13.  
  14. 1. It will wrap icons when they reach the end of the screen (starting one row up and to the left).
  15. 2. It facilitates the animation of color or black&white icons.
  16. 3. It facilitates drawing multiple color or black&white icons.
  17. 4. It provides an option to play a 'snd '.
  18. 5. It provides an option to sysbeep the user.
  19. 6. It doesn't have to be compiled because it already is, and gets its information from a resource. (for which we include a ResEdit template)
  20. 7. And it provides an option to loop through your animation until the mouse button is pressed. (handy for alerting the user, also SysBeeps each time if sysbeep option is set)
  21.  
  22.  
  23. Files Included...
  24. --------------
  25.  
  26. 1. ShowCInit: This file contains the INIT which displays an color or black and white icon in animation showing an apple.
  27. 2. ShowCInit.doc: You're reading it!
  28. 3. 'icn#' TMPL: ResEdit template for creating 'icn#' resources for use with this INIT.
  29.  
  30.  
  31. Using ShowCInit...
  32. ----------------
  33.  
  34. To use ShowCInit, place the INIT resource into a file in your system folder (this can be done with ResEdit). The file should be of type cdev or INIT (otherwise, the system won't look at it when it boots up!). Place your cicn's or ICN#'s in the file as well. Now, you need to create a resource called 'icn#'. This is the instruction list for ShowCInit. If you have not already done so, copy the 'icn#' template which came with this into your ResEdit application file (inside ResEdit itself). Close ResEdit to save the changes and go back to your INIT file.
  35.  
  36. Now add a new resource by selecting new from the file menu. Select the 'icn#' resource and select new again. Now you have an empty resource which you need to fill as follows:
  37.  
  38. 1. Number of cicn's: This is the number of color icons to be used in the animation, use one for no animation.
  39. 2. Color?: If true, ShowCInit plots color icons on color machines. If false, it plots ICN#'s on all machines. If a machine doesn't have color QuickDraw, it tries to plot ICN#'s if they exist.
  40. 3. Delay: This is the number of ticks (1/60 of a second) to delay between the plotting of each icon (recommend 10, or 30 for a flashing effect).
  41. 4. Animation: If true, then icons are drawn at same location, otherwise they appear one after another horizontally.
  42. 5. Wait for Mouse Down: True means the animation repeats until the mouse is pressed.
  43. 6. SysBeep: True means a sysbeep will be played.
  44. 7. Sound: True means a 'snd ' resource will be played.
  45. 8. Sound ID: If Sound is true, then the ID of the 'snd ' to be played goes here.
  46. 9. Unused: Saved for future purposes.
  47. 10. From here on, are the ID's of the 'cicn' resources to be used for animation in the order that they will be drawn. MAKE SURE THERE ARE AT LEAST AS MANY CICN ID'S AS SPECIFIED IN THE NUMBER OF CICN'S!!! (as sysbeep will play if a cicn cannot be found)
  48.  
  49. Lastly, it is VITAL that you change the ID of the 'icn#' resource to 999 and begin the name of the INIT with ShowCInit (e.g. ShowCInit1, ShowCInit 2, etc.). The ID of the INIT itself doesn't matter at all for its functioning but the order in which they appear may matter in your application (if it does, you already know what we mean). It seems that the first INIT listed, is the last INIT run; the ID's don't seem to matter at all.
  50.  
  51.  
  52. Advice...
  53. --------
  54.  
  55. We suggest that you create corresponding ICN#'s. This way, if you run on a non- color QuickDraw Mac, you will at least see the black&white icons. In the future, we will automatically plot the black&white version of the color icon; we had a problem with the base address of the iconBMap (always zero?). But for now, this works and any changes will be compatible with all previous versions! The black&white icons will be drawn unless "Color?" is true. Also, IM recommends that cicn's should be purgeable. If you have any problems, call, 9-5, M-F, (407) 727-7737.
  56.  
  57.  
  58. Terms...
  59. -------
  60.  
  61. We provide the template free of charge. However, we put some effort into developing this INIT. We ask that if you want to use this INIT for personal use that you send us the whopping amount of $1. That's all we ask! Unless you can afford $2, since there are two of us. With that one dollar, and a little searching for a cheap enough machine, we can each by a soda between classes. 
  62.  
  63. If you would like to use this INIT for a product, we require $10 per product or $50 for unlimited use.
  64.  
  65. Send To:   Joe Sternlicht
  66.            3630 Misty Oak Drive #1607
  67.            Melbourne, FL 32901
  68.  
  69.  
  70. For NON-programmers...
  71. ---------------------
  72.  
  73. You do not need to know how to program to use this! This INIT requires no programming experience, just a little experience with ResEdit. Here's an idea: Use ResEdit to copy the 'icn#' TMPL into ResEdit itself and close ResEdit. Use ResEdit to create a file of type INIT and copy the ShowCInit into the file. In that file, create a few ICN#'s or copy some cicn's from another file. Now, create a new resource of type 'icn#'. Use Get Info to renumber the ID to 999 and rename it to whatever you want; so long as it starts with 'ShowCInit'. Next, fill in the template of the icn# resource. Set the number of icons, choose color if you are using color icons, set the delay between icons to 10, choose animation to have the icons drawn one on top of the other, set sysbeep to false, set sound to false, skip sound ID and unused, now click on the stars (*) at the bottom and select new from the file menu once for every icon you want to draw. In the boxes to the right, type the ID's of the icons in the order you want them drawn. Close and save the file, and place it in your system folder. You've just created a little INIT without programming! Use ResEdit to experiment with some of the fields in the icn# resource. Try copying a 'snd ' resource into the file and set the icn# resource fields appropriately.
  74.  
  75.  
  76. On the side...
  77. ------------
  78.  
  79. Did you ever wonder how those icons were shown on the desktop at startup? Well, we did. We came across assembly code for ShowInit, and would like to thank Paul Mercer ('Thanks Paul') for it. We learned a little about drawing on the desktop at startup and how he maintained the position of the next icon. As computer scientists (or at least we are studying to be) we want a tool, written in a high level language for maintainability purposes, so we don't have to worry about writing new code for every application we write. Also, we felt that the icons should wrap around the screen rather than being clipped. So, we rewrote it in 100% Lightspeed C (no assembly!). We added a few more optional features and will add more as time goes by to make life easier. All versions WILL maintain full compatibility. We expect everyone to use this INIT to show their icons at startup. So, with that in mind, we will continue to optimize and enhance it as you request.
  80.  
  81. If you are interested in the source code, it is written in LSC as stated earlier and is well commented as to what it is we are doing and why. We'll send it to you for $25. If you do purchase it, do not upload it, do not give it away; it is not public domain. The INIT itself isn't either; it costs $1 for personal use, $10 for professional use.
  82.  
  83.  
  84. Update...
  85. --------
  86.  
  87. Unfortunately, we let an old version get out. The only problem with the old version was that it crashed if you waited too long when using the Wait Mouse Down option. The proper version is 1.1. You can tell if you have an old version by using ResEdit to look at the data in the INIT towards the end, in the copyright statement. If it doesn't have a version number or has on less than 1.1, then it is old and you should replace it.
  88.  
  89.  
  90.                                  Thanks, have fun, and be creative,
  91.                                  Joe Sternlicht and Andrew Diaz, GraF/X, Intl.
  92.