home *** CD-ROM | disk | FTP | other *** search
/ Fujiology Archive / fujiology_archive_v1_0.iso / !MAGS / !BONUS / COVERDSK / STFORMAT / STF36.ZIP / STF36A.MSA / GFA / MENUMAKE.DOC < prev    next >
Text File  |  1987-04-22  |  9KB  |  201 lines

  1.  
  2.  
  3.                           ---- MenuMaker v1.0 ----
  4.                                (test release)
  5.  
  6.  
  7.      This is the first public release of a small utility that I wrote for my ownuse to aid the making of GEM menus within GFA Basic a lot quicker, and for the
  8. beginner, a lot easier. I have tried to make it as easy to use as possible but
  9. as it was originally written for myself you might find some of the menu options
  10. and prompts a little confusing. Hopefully this document should help.
  11.  
  12.                            -- Copyright Stuff --
  13.  
  14.      Version 1.0 is totally Public Domain. All I ask is that the program file,
  15. MENUMAKE.PRG, and this MENUMAKE.DOC file stay together. All future releases of
  16. MenuMaker will be released as Licenceware and will be available through any PD
  17. library that is a member of the PD Confederation. ONLY version 1.0 is available
  18. from anywhere.
  19.  
  20.  
  21.                     --- How It Works (or Does It Work?) ---
  22.  
  23.      When you first try to save any work you have done the program will create
  24. a folder on the root directory of the drive from which the program was started,
  25. this also includes hard drives, called MENUMAKE. In this folder all the files
  26. created will be stored. The idea of this feature is to keep all the menu files
  27. and final source code in one directory instead of all over the place, this is ifyoyr anything like me anyway. When you create a menu it can be saved as raw dataso it can be re-loaded at a later date and added to or changed. When it is savedas code a GFA Basic file in ASCII format, should have a .LST extension, is
  28. created. This code can be merged into GFA Basic and run immediatly. The only
  29. thing you have to add is the routines for your program. There are certain do's
  30. and dont's but I will explain these in their specific sections later. When you
  31. are creating the menu any entries can have the routine that they are to call
  32. entered, this is optional, and the final source code will have Procedure and
  33. return commands for them ready made, also the function within GFA Basic that
  34. calls a Procedure when it is selected will be included, again, this is only if
  35. the procedure to be called was entered into MenuMaker. If no procedure was
  36. entered the only code created for that entry is for the actual code needed to
  37. create the display menu, not the call routines. Examine the source code to see
  38. how it works if you are a beginner. Throughout the creation of your menu you canalways see what the finished product will look like as there is a test menu
  39. function, so there is no need to keep saving the source code and having to mergeit into GFA Basic. The code produced has been tested on GFA Basic v2.0 and v3.6
  40. and it worked without any problems, SO FAR. When ever any code is created it
  41. will always allow the maximum of 6 desktop accessories to be selected form the
  42. first menu list. You do not have to enter any details about these as the programwill do it automatically.
  43.  
  44.  
  45.  
  46.      The following sections will try to explain what each menu option does and
  47. how to use it. Each section title will show the menu heading and the menu entry
  48. to be found under it.
  49.  
  50. Info
  51. ---------------
  52. GFA MenuMaker
  53.  
  54.      This is just a small information screen. Any desktop accesories loaded willbe displayed below this line.
  55.  
  56.  
  57. File
  58. -----------------
  59. Load Menu Info
  60.  
  61.      Loads a raw menu data file.
  62.  
  63.  
  64. File
  65. -----------------
  66. Save Menu Info
  67.  
  68.      Saves a raw menu data file.
  69.  
  70.  
  71. File
  72. -----------------
  73. Quit MenuMaker
  74.  
  75.      Need I say more? The option to save any work is given before quitting.
  76.  
  77. Options
  78. ---------------------
  79. Clear Present Menu
  80.  
  81.      *** USE WITH CAUTION ***  Any menu data held in memory will be deleted so
  82. make sure any work you have done has been saved. This is used to clear an old
  83. menu so a new one can be started.
  84.  
  85. Options
  86. ---------------------
  87. Add New Menu Heading
  88.  
  89.      You will be prompted for a menu heading name. This is the text displayed
  90. above the line all the time. As you enter them MenuMaker will create the menu
  91. bar in the same order from the left. There can be a maximum of 10 menu headings
  92. but you must be careful not to go off the end of the screen.
  93.  
  94. Options
  95. ---------------------
  96. Delete A Menu List
  97.  
  98.      You can delete a complete dropdown menu by choosing the menu heading. Use
  99. this function with care. Once a list has been deleted the existing menu details
  100. that came after it are moved into it's place. Any deleted list cannot be
  101. recovered, unless it was saved on disk.
  102.  
  103. Options
  104. ---------------------
  105. Add To Menu Heading
  106.  
  107.      Form here you can create the part of the menu that drops down. First you
  108. are asked to enter which menu heading you want to add to. If it is the first
  109. heading you can only add 1 item because of having to reserve space for any
  110. desktop accessories. This is a feature of GEM that cannot be changed. Any other
  111. headings can have upto 20 entries. After you have entered this you can then
  112. enter the name of the procedure to be called. This is optional, but if it is
  113. entered the appropriate GFA commands to call this procedure are created when themenu is saved as code. Also the procedure command and return are done. All you
  114. need do then is insert you own code in between these two lines for example:
  115. you enter the menu name as TEST and the procedure as TESTONE. Menumaker will
  116. create the code to check if TEST was choosen from the menu and if so will branchof to the line PROCEDURE testone, after which your code will be run and then thelast line entered by MenuMaker which will be RETURN which will go back to
  117. monitoring the menu again. Try it and see. When you enter a procedure name you
  118. cannot have any spaces but you can use the underscore, for example you cannot
  119. have TEST ONE but you can have TEST_ONE.
  120.  
  121.  
  122. Options
  123. ---------------------
  124. Edit A Menu Entry
  125.  
  126.      First you select the menu heading and then the menu entry. From here you
  127. can change the menu entry and the procedure to call.
  128.  
  129. Options
  130. ---------------------
  131. Delete A Menu Entry
  132.  
  133.      As the name suggests you can delete a menu entry, First choose the menu
  134. heading and then the menu entry to be deleted. All other menu entries below
  135. the deleted one will be shifted to fill its space.
  136.  
  137. Options
  138. ---------------------
  139. Test Menu So Far
  140.  
  141.      You can see what your finished menu will look like without having to save
  142. it and quit the program. The screen colours will change to the default desktop
  143. colours and your menu bar will be shown, complete with the dropdown menus. Move
  144. the mouse over the menu headings to see what they will look like. This is a
  145. new feature written in for the v1.0 release. To return to the 'REAL' menu
  146. just click the right mouse button. Any changes or deletions you make will
  147. always be shown here so keep checking your menu.
  148.  
  149.  
  150.      Right, I think thats about it. Hopefully most things will be simple enough
  151. to follow, but I remember when I first started to program menus in GFA and it
  152. took me hours to get it the way I wanted it, this utility should make life that
  153. bit easier. Not only that, IT'S FREE.
  154.  
  155.      I am more than welcome to recieve any letters giving me suggestions and
  156. ideas to make the program better and easier to use, or even a letter letting
  157. me know if the program was of any use to you. As I am a member of the PdC
  158. (Public Domain Confederation) as a Licenceware programmer all future versions
  159. will be available from PdC PD Libraries. One of which is Jennix PD which can
  160. be contacted at 66 Abbey Rd, Strood, Kent, ME2 3QB. Alternativly you can send meTwo Pounds and your address and I will send you the next version, when its done.Any users who give me ideas which I use will be mentioned in the program, nows
  161. your chance to get your name seen by hundreds of ST users, well 2 anyway, Me andYou!
  162.  
  163. Thanks to the following:-
  164.  
  165. ST Format - It was the GFA Surgery section that made me release the program as I            was suprised at the amount of questions asked about GEM menus, also
  166.             for giving us ST users a great magazine, I get mine every month, DO
  167.             YOU?
  168.  
  169. Nick Klee - A good friend who runs Jennix PD and first suggested that I release
  170.             some of the programs I have written, both his catalogue and invoice
  171.             programs are by me, and for introducing me to the PdC.
  172.  
  173. GFA Basic - This must be the Rolls Royce of the basic programming languages. In
  174.             my 10 years of computing as a hobby I have never used or admired a
  175.             program as much as I do this. If only all things were as good as GFA
  176. YOU!      - For taking the time to read this document and for possibly trying
  177.             out the program. Please let me know what you think. Just a letter
  178.             of appreciation (no money) will mean a lot.
  179.  
  180. Finally and most importantly -
  181.  
  182. My wife, Geraldine - Thanks for my 2 wonderful sons, Richard & Daniel, and for
  183.             putting up with me being on the computer all night. I love you...
  184.             This mush is killing me. The truth is as long as she gets her go
  185.             on Llamatron every now and again, shes happy.
  186.  
  187.  
  188.  The Author ( Thats me ! ) : Mark Matts
  189.                               66 Telford Way
  190.                                Leicester
  191.                                 LE5 2LX.
  192.  
  193.  
  194.  
  195.  
  196.                  ------------------------*-------------------------
  197.  
  198.  
  199.  
  200.  
  201.