home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / spike.zip / SPIKE.TXT < prev   
Text File  |  1996-01-07  |  6KB  |  130 lines

  1.                                 SPIKE
  2.  
  3. Files:
  4.        SPIKE.TXT      this file
  5.        SPIKE.ICO      optional icon
  6.        SPIKE.EXE      The Spike program
  7.        SPIKE.C        Source code
  8.  
  9.         Place these files in a directory of your choice (e.g. Spike).
  10.  
  11.                       Chapter 1 - The Story
  12.                       --------------------
  13.  
  14. A name that is hopefully indicative of the spike found on many 
  15. desktops in many offices.  This is the place where all memos 
  16. and postit notes go after they have been read.  It looks like a 
  17. spike mounted on a pedestal.
  18.  
  19. What I found I needed in OS/2's desktop, was a place to quickly 
  20. place, and save, clipboard data that I wanted stored for future 
  21. reference.  In the past, I had to copy to the clipboard, make a 
  22. temporary text file, place the text file on the desktop for easy 
  23. access, then open the file, then append the data, then close 
  24. the file.  I found this procedure rather tedious, so I called a 
  25. good friend, and asked him if such a thing could be made....
  26.  
  27. His response was enthusiastic and he suggested that I make 
  28. an icon for it.  He further suggested that the icon would take 
  29. more time than the actual program.  He was right!
  30.  
  31.  
  32.                         Chapter 2 - The Installation
  33.                         --------------------------
  34.  
  35. We discussed the method of installation and decided that we 
  36. would not write an installation script.  This decision was made
  37.  so that we could use Spike as a lesson in OS/2's association 
  38. methods.  Most of us already know how to use common 
  39. associations with exe files.  This file will show you how to 
  40. make a new data file type, associate it with a spike.exe file, 
  41. and then make the data file into a template.  The reward for 
  42. going through this lesson will be a free utility that I think
  43. a lot of you will find useful.  Plus as a benefit, you will be able
  44. to use this knowledge in many other areas.
  45.  
  46.  
  47.                         Chapter 3 - Off to work we go
  48.                         -----------------------------
  49.  
  50. Open your template folder, drag off a DATA FILE template.  
  51. Drop itinto the same open template folder.  Change the name 
  52. to SPIKEFILE.
  53.  
  54. Next, go to the settings folder of the new SPIKEFILE.  Open its
  55. settings notebook to the first page (TYPE PAGE).  Go to the 
  56. field NEW TYPE:.  Next, type in SPIKEFILE.  To the left of it, 
  57. there is a pushbutton called << New,  push on it.  This adds
  58. a new data type file to the list of available types.
  59.  
  60. After doing this, go to the CURRENT TYPES box and notice that 
  61. the current type listed is Plain Text.  This is the default type 
  62. for all data files.  Highlight the Plain Text selection, and hit 
  63. the << Remove pushbutton.  Next scroll down through the 
  64. types available and select your new type SPIKEFILE.  Then 
  65. after highlighting the new SPIKEFILE selection, push the 
  66. Add >> pushbutton.  This adds the spikefile selection to the 
  67. current types. This operation makes SPIKEFILE the first or 
  68. default action that is invoked when you click on its icon later.
  69.  
  70. Now scroll through the list and find the Plain Text selection 
  71. that we removed before.  Highlight it and then use the 
  72. Add >> button to again add it to the current types box.  
  73. What this does is allow for two associations.  The first one 
  74. is an association to the data type SPIKEFILE, and the 
  75. second type is the plain text type.
  76.  
  77. For the moment we are now finished with this data file 
  78. (just leave it open) and will set up the actual executable 
  79. file.  We drag a program object onto the desktop from the 
  80. templates folder, and we add the path and filename
  81. (?:\Spike\spike.exe) to the appropriate fields.  We then
  82.  add the SPIKEFILE to its association settings. From 
  83. Available Types select SPIKEFLE then push the Add >> 
  84. button. At this point we should see the icons appearing. 
  85. Click on the General tab and change "Program" to "Spike" 
  86. and close the program notebook. 
  87.  
  88. Now to finalize this lesson we go back to the template 
  89. folder where we first made the new data type, and open 
  90. the spikefile settings notebook, if not already open, and 
  91. select the General tab. Ensure that the title is SpikeFile, 
  92. or a similar name, then click on the check box for Template 
  93. then close the settings notebook.  This allows us to rip off
  94. as many SPIKEFILES as we want, to deal with as many
  95. different subjects as we need.  Simply rename the files 
  96. as you see fit.
  97.  
  98. To use the spikefile, simply drag a spikefile template 
  99. from the templates folder, and drop it wherever you 
  100. wish.  Now when you have a clipboard full of data you 
  101. wish to save, simply double click on the spikefile icon, 
  102. and the text contents of the clipboard will be appended.
  103. If you wish to read/edit the file, simply right mouse 
  104. button to bring up the spikefile's menu, select the > 
  105. arrow to the right of open and then select the editor 
  106. from the pop-up that you have associated with 
  107. PLAIN TEXT.  Note that you can associate the spikefile 
  108. editor with one or more editors of your choice.
  109.  
  110. To tidy up the installation process drag the SPIKEFILE 
  111. program object off the desktop and into the Spike folder.  
  112. You can also make a copy of the SPIKEFILE template 
  113. and place it in this folder as well.  Now rip off a template 
  114. and keep it in this folder, rename it for applicable use
  115. and then create a shadow for it on the desktop.  You 
  116. can repeat this last process for as many "Spikes" as 
  117. you need on your Desktop for various purposes.  Using 
  118. this method you always keep your data files in a 
  119. directory on the drive and can delete any shadow 
  120. not required from the Desktop at any time.
  121.  
  122.                        Chapter 4 - All the other stuff
  123.  
  124. SPIKE was created by a couple of members of 
  125. TEAM OS/2 Vancouver, BC SIG. It is freeware. 
  126. All we ask is that you include all files when passing 
  127. it on to others. There is no support from the author, 
  128. we ask that you help other users requiring help as your 
  129. "dues" for the free software.
  130.