home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug016.arc / WINDOW-C.LBR / C-FUN.DOC next >
Text File  |  1979-12-31  |  4KB  |  101 lines

  1. .pl70
  2. .po0
  3. .op
  4.                        DOCKS FOR C-FUN.LBR
  5.  
  6. N∩ prize≤ fo≥ quessinτ wherσ fallout.π camσ from« I'vσ changeΣ i⌠ ì
  7. t∩á bσá iε colou≥ anΣ t∩ acces≤ screeε RA═ direc⌠ s∩ tha⌠á i⌠á i≤ ì
  8. much faster. Or you can have more things moving around.
  9.  
  10. Therσ arσ als∩ somσ ├ program≤ whicΦ arσ m∙ attemp⌠ t∩ builΣá anΣ ì
  11. demonstratσá window≤á includinτ gloriou≤á technicolour«á ╔á woulΣ ì
  12. appreciatσá constructivσá criticisφ anΣ als∩ somσ advicσá oεá thσ ì
  13. bugs.
  14.  
  15. I⌠á al∞á starteΣá a≤ aε attemp⌠ t∩ cop∙ somσ oµ thσá feature≤á oµ ì
  16. IBM'≤ BASIC┴ iσ thσ abilit∙ t∩ operatσ oε (eτ clear⌐ onl∙ par⌠ oµ ì
  17. thσá screen«á Therσ i≤ als∩ thσ probleφ oµ handlinτ colou≥ (aφá ╔ ì
  18. thσ onl∙ onσ witΦ ß colou≥ disπ system?).
  19.  
  20. *ááááwdefines.Φ i≤ ß filσ whicΦ define≤ thσ Windo≈ structurσá anΣ ì
  21. áááááals∩á thσá variou≤ commands«á A≤ fa≥ a≤ possiblσá thesσá arσ ì
  22. ááááásimilia≥á t∩á thσ norma∞ 654╡ commands«á Thi≤ filσá mus⌠á bσ ì
  23. áááááincludeΣ iε al∞ ├ file≤ whicΦ usσ thσ windo≈ routines.
  24.  
  25. *ááááwindows.πá hold≤ thσ variou≤ windo≈ routines«á A≤ i⌠ i≤ herσ ì
  26. ááááái⌠á mus⌠á bσá includeΣ iε onσ (anΣ onl∙ one⌐á oµá thσá file≤ ì
  27. ááááámakinτ u≡ thσ program.
  28.  
  29. ááááááááááWcurso≥ i≤ supposeΣ t∩ positioε thσ CP/═ curso≥ a⌠á thσ ì
  30. áááááááááápositioεá correspondinτ t∩ thσ CursX,┘ positioε iεá thσ ì
  31. áááááááááácurren⌠ window.
  32.  
  33. ááááááááá Wdispla∙ i≤ reall∙ ß debugginτ aid
  34.  
  35. ááááááááá WfolΣ bring≤ thσ CursX,┘ positioε bacδ int∩ thσ windo≈ ì
  36. ááááááááááeτ wra≡ t∩ thσ nex⌠ line
  37.  
  38.  áááááááááWgetcha≥á get≤ ß characte≥ froφ thσ keyboard«á Notσá i⌠ ì
  39. ááááááááááignore≤ nulls.
  40.  
  41. ááááááááááWget≤ return≤ thσ addres≤ oµ ß strinτ froφ thσ keyboarΣ ì
  42. ááááááááááb∙ iterativσ call≤ oε Wgetchar«á Thσ norma∞ GET╙ canno⌠ ì
  43. áááááááááábσá useΣ a≤ i⌠ doe≤ no⌠ handlσ colour≤ anΣ wil∞á ignorσ ì
  44. ááááááááááthσ windo≈ boundaries.
  45.  
  46. ááááááááááWinitia∞ mus⌠ bσ thσ firs⌠ routinσ calleΣ a≤ i⌠ set≤ u≡ ì
  47. ááááááááááthσ Screeε structurσ anΣ thσ backgrounΣ colours
  48.  
  49. ááááááááááWpokσ put≤ thσ characte≥ iε thσ righ⌠ placσ (anΣ iε thσ ì
  50. áááááááááárigh⌠ colour⌐ oε thσ screen« 
  51.  
  52. ááááááááááWputcha≥ put≤ ß characte≥ usinτ Wpokσ afte≥ sortinτ ou⌠ ì
  53. ááááááááááall the control characters as in wdefines
  54.  
  55. ááááááááááWputs puts a string using iterative calls on Wputcharááááááááááááááá
  56.  
  57. ááááááááááWsizσá change≤ thσ Screeε size╗á i⌠ shoulΣ probabl∙á bσ ì
  58. áááááááááábuilt into Winitial
  59.  
  60.  
  61.  
  62. è*áááádisc.πá i≤á ßá prograφ whicΦ use≤ window≤ t∩ sho≈á ho≈á ful∞ ì
  63. áááááand tidy the disc is. Give it a burl.
  64.  
  65. *áááátest.πá wa≤ useΣ t∩ tr∙ ou⌠ thσ variou≤ contro∞á characters« ì
  66. áááááIt is ponderous to use.
  67. Any good? The known bugs are 
  68.  
  69. *ááááWcursor is suspect 
  70.  
  71. *ááááThσ firs⌠ cal∞ oε Wgetcha≥ (eithe≥ direc⌠ o≥ viß Wgets⌐ doe≤ ì
  72. ááááánot display the cursor ie the inverse space.
  73.  
  74. Thσá maiε probleφ i≤ ho≈ t∩ se⌠ u≡ thσ routine≤ fo≥ usσá a≤á somσ ì
  75. wa∙á mus⌠á bσ founΣ t∩ savσ thσ datß iε thσ Screeε structurσá fo≥ ì
  76. use by Wpoke (and Wsize if this is kept separate).
  77.  
  78. ╔á trieΣ compilinτ windows.π (#includσ bdscio.Φá anΣá wdefines.h⌐ ì
  79. anΣ theε usinτ thσ CR╠ filσ a≤ ß library« Naturall∙ thi≤ doe≤ no⌠ ì
  80. work¼á Screeε doe≤ no⌠ exis⌠ anΣ thσ resultinτ prograφ assume≤ i⌠ ì
  81. i≤á a⌠ locatioε 0000«á (I⌠ work≤ unti∞ yo⌡ acces≤ ßá routinσá (eτ ì
  82. reaΣ ß disc⌐ whicΦ use≤ thi≤ location.)
  83.  
  84. ╔ trieΣ linkinτ thσ CR╠ filσ a≤ ß sub-program«á Howeve≥ Screeε i≤ ì
  85. generateΣá a⌠ thσ star⌠ oµ thσ modulσ anΣ thσ correspondinτá areß ì
  86. mus⌠ bσ maskeΣ iε thσ maiε prograφ iµ thi≤ i≤ linkeΣ first«á Wil∞ ì
  87. it work if windows is linked as the first module?????
  88.  
  89. Includinτá windows.πá iε onσ oµ thσ prograφ file≤ doe≤á worδá bu⌠ ì
  90. doe≤á meaε tha⌠ al∞ thσ routine≤ arσ calleΣ iε eveε iµ no⌠á used« ì
  91. Notσá tha⌠á thi≤ includσ mus⌠ bσ outsidσ an∙ functioεá a≤á Screeε ì
  92. must be (at least partially) global.
  93.  
  94. Eventuall∙áá wdefines.Φá shoulΣá bσá includeΣá iεá thσáá standarΣ ì
  95. definitions.ì
  96.  
  97. Have fun,
  98.  
  99. Dave Nowlan, 7 Albert Street, Hawthorn East, Vic 3123.
  100.  
  101.