home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_03 / issue_10 < prev    next >
Text File  |  1995-02-16  |  3KB  |  112 lines

  1. Å Arthur Fonts Ö when using the FontDes program supplied with Arthur
  2. operating system, it is possible to vary the thickness of one or both
  3. ends of the line.  This is achieved by using the adjust button when the
  4. mouse is positioned over a line in a öchar fullò window (this then
  5. highlights the line) and then pressing the menu button at either end of
  6. the line.  This will bring up a Épen ratioæ window which allows you to
  7. alter the percentage ratio of the pen at that point, the ratio is set by
  8. clicking on the percentage windowæs quit box.
  9. 3.10
  10.  
  11. 3.10
  12. Å Extra Brushes for !Paint Ö you can add your own brushes to the !Paint
  13. package by including the desired shapes in the ÉSpritesæ file i.e.
  14. 3.10
  15. (i) Open up the !Paint directory by double clicking on !Paint while
  16. holding the shift button down
  17. 3.10
  18. (ii) Load the ÉSpritesæ file into !Paint
  19. 3.10
  20. (iii) Create the brush shapes you want in this file
  21. 3.10
  22. (iv) Save the ÉSpritesæ file
  23. 3.10
  24. Donæt forget to make a note of the names of the brushes you created so
  25. that you can access them from the tools menu.  David Parker
  26. 3.10
  27.  
  28. 3.10
  29. Å Hard Spaces can be entered using the <alt> key and typing <1><6><0> on
  30. the numeric keypad but a much quicker way is just to type <alt><space>. 
  31. Charles Moire
  32. 3.10
  33.  
  34. 3.10
  35. Å Lightning strikes Ö Be warned!  Donæt leave your modem connected to
  36. the phone line when there is an electrical storm.  I did and the spikes
  37. that came up the phone line killed a new V22bis modem and the RS423 port
  38. on the Archimedes!  David Leckie.
  39. 3.10
  40.  
  41. 3.10
  42. Å Memory Saving Ö It is worth remembering that sprites with masks take
  43. up twice as much room as those without.  If all sprites are altered with
  44. !Paint to remove the mask, a considerable amount of memory can be saved. 
  45. Ian Hamilton.
  46. 3.10
  47.  
  48. 3.10
  49. Å Printing with 1M Ö when using Draw, Paint, Impression, Acorn DTP, etc
  50. you can quit !PrinterDM (or  whatever printer driver you use) to reclaim
  51. about 80k of RAM.  It would appear that these applications only need the
  52. modules that remain in the RMA area after the !PrinterDM application has
  53. been quit so all the print options are still available.  R J Denison
  54. 3.10
  55.  
  56. 3.10
  57. Å Wimp Window Drawing Ö The usual construction for defining a graphic
  58. window and drawing into it would look something like this:
  59. 3.10
  60.    DEFPROCgraphic_window
  61. 3.10
  62.    VDU26,5,24,graphicsbx%;graphicsby%;graphicstx%;graphicsty%
  63. 3.10
  64.    ORIGIN reportbx%-scrollx%,reportty%-scrolly%
  65. 3.10
  66.    ENDPROC
  67. 3.10
  68.  
  69. 3.10
  70.    DEFPROCdraw_text (x%,y%,text$)
  71. 3.10
  72.    MOVE x%,y% : PRINT text$
  73. 3.10
  74.    ENDPROC
  75. 3.10
  76.  
  77. 3.10
  78. This will work okay until the values in the origin statement exceed
  79. 32767.  I found that I had blank screens in the middle of large reports. 
  80. The following changes cured the problem:
  81. 3.10
  82.    DEFPROCgraphic_window
  83. 3.10
  84.    VDU26,5,24,graphicsbx%;graphicsby%;graphicstx%;graphicsty%
  85. 3.10
  86.    y%=reportty%-scrolly% : compensationy%=0
  87. 3.10
  88.    REPEAT
  89. 3.10
  90.    IF y%>32000 THEN y%-=32000 : compensationy%+=32000
  91. 3.10
  92.    UNTIL y%<=32000
  93. 3.10
  94.    ORIGIN reportbx%-scrollx%,y%
  95. 3.10
  96.    ENDPROC
  97. 3.10
  98.  
  99. 3.10
  100.    DEFPROCdraw_text (x%,y%,text$)
  101. 3.10
  102.    MOVE x%, y%+compensationy%: PRINT text$
  103. 3.10
  104.    ENDPROC
  105. 3.10
  106. Although you would have a problem in the x-direction, it is unlikely
  107. that a window would be that wide.  A similar change could be applied if
  108. this was necessary.  Ian Hamilton.
  109. 3.10
  110.  
  111. 3.10
  112.