home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 16 / 016.d81 / t.windowing < prev    next >
Text File  |  2022-08-26  |  3KB  |  161 lines

  1.  
  2.           Simple Windowing
  3.  
  4.  
  5. Written by: Bruce Jaeger
  6.  
  7. Simple Windowing for the Commodore 64
  8. Commodore Microcomputers, October 1985
  9. Page 60
  10.  
  11.  
  12.   If you've ever seen a Macintosh (or
  13.  
  14. similar mock-up), then you know
  15.  
  16. exactly what a window is.  If you
  17.  
  18. don't know what a window is, then
  19.  
  20. here is a brief explanation.
  21.  
  22. Windowing is the practice of setting
  23.  
  24. aside part of the computer's display
  25.  
  26. (monitor screen) for things like help
  27.  
  28. menus, extra commands, and the like,
  29.  
  30. and then being able to restore the
  31.  
  32. screen to its original state when the
  33.  
  34. window is removed.  One of the most
  35.  
  36. useful aspects of windowing is
  37.  
  38. allowing the computer user to access
  39.  
  40. valuable information (such as help
  41.  
  42. screens) and then returning to his
  43.  
  44. original display without losing the
  45.  
  46. information that was on that screen.
  47.  
  48.   This program allows you to use
  49.  
  50. windows in your own programs.  When
  51.  
  52. you RUN the program, it will POKE in
  53.  
  54. a machine-language routine to do the
  55.  
  56. dirty work.  After placing the
  57.  
  58. routine in memory, you will be shown
  59.  
  60. a small demonstration of what you can
  61.  
  62. do with windows.  Remember, this is a
  63.  
  64. very simple demonstration.  After you
  65.  
  66. master the technique, the
  67.  
  68. applications are limitless.  With
  69.  
  70. some thought and creativity, you can
  71.  
  72. come up with some extraordinary
  73.  
  74. ideas.
  75.  
  76.   The machine-language routine is
  77.  
  78. really divided into two distinct
  79.  
  80. parts.  The first part of the routine
  81.  
  82. is activated by using a SYS 49152.
  83.  
  84. This SYS will activate the 'memorize
  85.  
  86. screen' part of the routine.
  87.  
  88. Whenever you use a SYS 49152, the
  89.  
  90. machine-language routine 'memorizes'
  91.  
  92. the text screen memory as well as the
  93.  
  94. color memory and puts them away in a
  95.  
  96. safe place.  For all you technical
  97.  
  98. people, the text screen is put away
  99.  
  100. starting at $C100 while the color
  101.  
  102. memory is put aside starting at
  103.  
  104. $C500.
  105.  
  106.   After 'memorizing' your text
  107.  
  108. screen, you can do whatever you want
  109.  
  110. to your screen.  We've already
  111.  
  112. mentioned displaying things like help
  113.  
  114. screens and extra commands that are
  115.  
  116. available to the user.  When you (or
  117.  
  118. the user) are ready to go back to the
  119.  
  120. original screen, all you need is a
  121.  
  122. SYS 49216.  This restores the screen
  123.  
  124. to the state it was in when it was
  125.  
  126. 'memorized'.  In other words, the
  127.  
  128. screen will look just like it did
  129.  
  130. before you executed the SYS 49152.
  131.  
  132.   Remember, use SYS 49152 to
  133.  
  134. 'memorize' a screen and use SYS 49216
  135.  
  136. to recall the memorized screen.
  137.  
  138.  
  139.   This program is copyrighted by
  140.  
  141. Commodore magazine.  All rights to it
  142.  
  143. are reserved.  LOADSTAR has relieved
  144.  
  145. you from the burden of keying in this
  146.  
  147.     program.  For more complete
  148.  
  149. information about this program, refer
  150.  
  151.     to the October 1985 issue of
  152.  
  153.  Commodore Microcomputers magazine.
  154.  
  155.  
  156.  
  157. >Files used:  WINDOWING
  158.  
  159.  
  160. ----------< end of article >----------
  161.