home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_06 / issue02 < prev    next >
Text File  |  1995-02-16  |  21KB  |  398 lines

  1. Hints and Tips
  2. 6.2
  3. Å   3D icons for RISC-OS 3.1 Ö Here are some tips for those of you who
  4. upgraded from RISC-OS 3.00 to RISC-OS 3.10 (and for anyone else who is
  5. interested in a fancy desktop).
  6. 6.2
  7. If you have used the fancy 3D-like window borders on your A5000, you
  8. will probably have noticed that, with RISC-OS 3.1, the borders will not
  9. install properly. This is because RISC-OS 3.0 programs used the
  10. ÉIconSpritesæ command to install the wimpæs tool sprites (i.e. borders),
  11. while in RISC-OS 3.1 there is a new command to install user defined
  12. window tools:
  13. 6.2
  14. *ToolSprites <spritefile>
  15. 6.2
  16. This is, I think, because the border sprites are now held in a separate
  17. sprite area for faster redrawing. So, the only thing you have to do is
  18. to change the command ÉIconSpritesæ into ÉToolSpritesæ at the appropri
  19. ate places in your files. Note that you can also re-install the default
  20. window tools by entering ÉToolSpritesæ on the command line.
  21. 6.2
  22. The small utility I use to install enhanced icons (a modified version of
  23. !SetIcons), shows another minor modification of RISC-OS 3.1. It is now
  24. assumed that some icons have the same dimension. For example, some
  25. border elements are painted from two sets of sprites Ö one that is
  26. normally used and one that is used when you select this particular
  27. border element. If corresponding sprites within these sets are different
  28. in size, you will see that some parts of the elements are not painted
  29. when you select them. To overcome this problem, you can adjust the sizes
  30. with !Paint.
  31. 6.2
  32. For those programmers who liked the Impression-style dialogue boxes,
  33. there exists a module called ÉInterfaceæ. This module takes care of most
  34. of the code to generate fancy icon borders. RISC-OS 3.0 has some in-
  35. built extras to achieve the same thing without the need to insert extra
  36. lines of code into your program. (The programmer only has to define some
  37. validation strings which contain the information to generate the desired
  38. effect.) However, because the validation string command syntax was
  39. essentially the same as the syntax used by the Interface module, there
  40. were sometimes problems when using the Interface module with RISC-OS
  41. 3.0.
  42. 6.2
  43. After I installed the new RISC-OS 3.1 ROMs, I was surprised to see that
  44. my own (RISC-OS 3.0!) programs didnæt have fancy borders any more. After
  45. some experimenting with the validation strings, I discovered that the
  46. command syntax is now different from the syntax used by the Interface
  47. module. To be more specific, RISC-OS 3.1 makes use of Ér<int><colour>æ
  48. (where <int> is a number between 0 and 8 and <colour> is a WIMP colour
  49. number), instead of Éb<int>, ...æ. This modification probably has been
  50. made to overcome the incompatibility problems with the Interface module.
  51. The simplicity with which you can use this prompts a question: Why donæt
  52. the ROM based applications like Draw use this facility? I guess this is
  53. just another ÉAcorn-mysteryæ.á Paul Groot, Holland.
  54. 6.2
  55. Å Editing paper sizes in RISC-OS 3 Ö If attempts are made to edit the
  56. paper sizes contained within the standard RISC-OS 3 printer driver
  57. files, it will be found that any changes made to the Text Margins
  58. section will revert to 0 when the window is closed, even if Save
  59. Settings is selected. This is due to a bug, but can be rectified by
  60. editing the paper files directly.
  61. 6.2
  62. Editing any of the paper sizes results in a new file called PaperRW
  63. being generated in the Printers application directory. This file can be
  64. modified using Edit. Make sure that the Printers application is not
  65. running (i.e. Choose Quit from the iconbar menu if it is). Find the
  66. !Printers application (normally in the App1 directory) and open it using
  67. Shift-double-click. Open the file called PaperRW by Shift-double-
  68. clicking on it. Scroll down the file until you find the name of the
  69. paper setting which you defined or modified. It will look something like
  70. æpn: Fanfold A4æ. At the bottom of the set of numbers relevant to this
  71. paper setting are five values (called tb, tt, tl, tr, th) which
  72. correspond to the text bottom, top, left and right margins and the
  73. height (in lines) respectively. Alter the values from 0 to your required
  74. numbers and save the file. When you re-run the Printers application,
  75. your paper sizes will be rectified.á Simon Moy, N.C.S.
  76. 6.2
  77. Å   How NOT to treat your SCSI hard disk Ö A few weeks ago I found a new
  78. way to get rid of all those files that clogged my external hard disk(!)
  79. 6.2
  80. Every verify I did showed up one questionable sector, so I decided to
  81. map it out as defective. The *Defect command applies only to ADFS, so I
  82. browsed through the SCSI diskæs manual and, finally, found what I was
  83. looking for (or so I thought).
  84. 6.2
  85. Morley supply their hard disks with a formatter application which,
  86. amongst other things, can add defects to a list. There is a warning that
  87. a low level format would result in total loss of data but, later in the
  88. description, an option was mentioned to decide whether or not to do the
  89. low level format while running the application.
  90. 6.2
  91. This led me to believe that clicking on ÉNoæ would keep my data intact Ö
  92. alas, I was wrong!
  93. 6.2
  94. The Morley hotline informed me that I had in fact done a high level
  95. format which wipes out the information about the addresses for each
  96. file. As the passage in the manual could be misunderstood, they very
  97. kindly offered to restore my data for me free of charge (just p&p).
  98. (Great service!!)
  99. 6.2
  100. However, it was not to be: I forgot to inform them that I use Computer
  101. Conceptsæ Compression on most of my files and this, I was told later,
  102. encodes the files in such a way that retrieval becomes virtually
  103. impossible.
  104. 6.2
  105. I learned two things from my self-made disaster:
  106. 6.2
  107. 1)áEven the excellent Compression is not proof against all kinds of
  108. fools.
  109. 6.2
  110. 2)á800 Kb floppy disks are just not good enough as a backup medium! I
  111. shudder at the thought that I will have to feed 112 floppies into my
  112. machine, once the hard disk returns from England.
  113. 6.2
  114. As a consequence, for future backups I have ordered a 20Mb floptical
  115. drive from Morley, to be sent as soon as it is able to read and write
  116. Acorn floppy formats.á Jochen Konietzko, K÷ln, Germany.
  117. 6.2
  118. Å   Humour in RISC-OS 3.1! Ö You will be pleased to hear that humour still
  119. exists within Acorn. If you load ÉResources:$.Resources.
  120. Switcher.Templatesæ into the template editor, FormEd, you get an
  121. interesting message.á Knut Folmo, Norway
  122. 6.2
  123. Å   Loading multiple Impression documents Ö If you want to load a number
  124. of Impression files at once, just select them (with rubber band dragging
  125. on RISC-OS 3, if you like) and drag them down onto the Impression icon
  126. on the iconbar.
  127. 6.2
  128. Å Memory size from Basic Ö In Basic, there is no specific way to find
  129. out how much physical memory is fitted to the host machine. However, it
  130. can be calculated using a SWI call as in this example:
  131. 6.2
  132. 10 SYS öOS_ReadMemMapInfoò TO PageSize%, NumOfPages%
  133. 6.2
  134. 20 TotalMemory% = PageSize% * NumOfPages%
  135. 6.2
  136. 30   REM This value is in bytes
  137. 6.2
  138. 40 Total% = TotalMemory% / 2^20
  139. 6.2
  140. 50   REM This value is in Mbytes
  141. 6.2
  142. Simon Moy, N.C.S.
  143. 6.2
  144. Å   More RISC-OS 3.1 Alt Characters The current A5000 Welcome Guide
  145. mentions some additional Alt-key characters. These alt-keys donæt
  146. actually produce a character themselves, they just set up an accent, so
  147. that the following character is changed into an accented character. This
  148. only happens if the accent is suitable for the following character.
  149. 6.2
  150. For example to type an Éeæ with an acute accent (Θ): Whilst holding down
  151. the Alt key, press and release <[>. Release <alt> and the press and
  152. release <E>. Thus:-
  153. 6.2
  154. Alt-[  E     Θ
  155. 6.2
  156. Alt-]  E     Φ
  157. 6.2
  158. Alt-;  E     δ
  159. 6.2
  160. Alt-æ  E     Ω
  161. 6.2
  162. Alt-,  N   ±
  163. 6.2
  164. Alt-.  A     σ
  165. 6.2
  166. Alt-/  C     τ
  167. 6.2
  168. The only other Alt-key character missing from the previous list is Alt-
  169. hyphen which gives character 173, which, in the Acorn fonts, looks
  170. exactly like a normal hyphen, but is often different in fonts from other
  171. suppliers.á Simon Moy, N.C.S.
  172. 6.2
  173. Å MS-DOS 5, PC Emulators and the Archimedes keyboard Ö (This excerpt
  174. from a reply to an Archive readeræs letter may prove useful to others.)
  175. The cursor keys do not work correctly with the PC emulators due to a
  176. bug. They will not work properly with either QBasic or DOS Edit. They
  177. can be used to move around the text but, to select text, you must use
  178. the cursor and editing keys which are mapped on the numeric keypad (as
  179. on a normal PC AT-style keyboard). Therefore, when inside the editors,
  180. make sure that NumLock is off and use <shift> and the following keys (on
  181. the numeric keypad):
  182. 6.2
  183. 6.3
  184. 6.2
  185. AMOUSE.COM is fully compatible with MS-DOS 5. However, as with all PCs,
  186. you cannot display the mouse pointer at the DOS prompt. Also, not all PC
  187. programs support the mouse. However, if the AMOUSE command is present in
  188. your AUTOEXEC.BAT file and the program you want to use accepts a mouse
  189. (e.g. QBasic, EDIT and DOSSHELL), you must start the appropriate
  190. application first and then select Connect Mouse (by pressing <menu> over
  191. the PC emulator window) if you are running the emulator from a window in
  192. the RISC-OS desktop. If you are using the emulator under Single Task
  193. mode, the mouse should automatically connect itself. (If the mouse does
  194. not connect itself automatically when running the emulator under Single
  195. Task mode, then this is a further bug in the PC emulator.) Typing AMOUSE
  196. at the DOS prompt or selecting Connect Mouse from the windowæs menu will
  197. not display the DOS mouse pointer, as DOS itself does not support a
  198. mouse. If you do this, the RISC-OS pointer will disappear (because
  199. control has passed to DOS) and you must press <menu> on the mouse to
  200. relinquish control from the emulator back to RISC-OS.á Simon Moy, N.C.S.
  201. 6.2
  202. Å Pound sign problems Ö The pound sign has always been a difficult
  203. character to print and display on the screen. To make the pound sign
  204. appear in the PC Emulator, press and hold <alt> and type 156 on the
  205. numeric keypad. When you release <alt>, the pound sign will appear.
  206. 6.2
  207. If you are printing a file as text (i.e. from Edit or PipeDream for
  208. instance) then the pound sign will print as a hash (#). You can reverse
  209. this by using a hash symbol in your text in place of the pound sign,
  210. although it is important that your printer is set up with a UK character
  211. set Ö see the DIP switch settings for your specific printer. If you are
  212. printing a file produced using bitmaps (e.g. Impression) then the pound
  213. sign will print correctly anyway. Basically, any program which defaults
  214. to printing on the screen using the system font will print characters as
  215. plain text Ö there is a section on plain and fancy text in the RISC-OS
  216. User Guide.
  217. 6.2
  218. By the way, does anybody know why you canæt access the pound sign
  219. (either from the keyboard or <alt-156>) in a Task Window under RISC-OS
  220. 3.0?á Simon Moy, N.C.S.
  221. 6.2
  222. Å RISC-OS 3.1: A310 Ö There is a problem when fitting RISC-OS 3.1 to
  223. A310 machines fitted with the Arcram 434 ARM3 + 4Mb upgrade from Watford
  224. Electronics. It causes the machine to hang on power-up. Replacement PAL
  225. chips and more information are available from Watford Electronics on
  226. 0923Ö37774 (Fax: 33642).á Simon Moy, N.C.S.
  227. 6.2
  228. Å RISC-OS 3.1: SCSI drives Ö There may be problems accessing the SCSI
  229. drive using the HCCS Hard Card interface with RISC-OS 3.1. Contact HCCS
  230. for details.á Simon Moy, N.C.S.
  231. 6.2
  232. Å Rotated fonts and sprites using Laser Direct Ö With the advent of
  233. RISC-OS 3.1, there are problems with printing rotated text and graphics
  234. using the currently existing RISC-OS 2 printer drivers such as that
  235. supplied with Laser Direct. To overcome the problem, transform the text
  236. or sprite to any angle in Draw, make sure that the item is selected and
  237. choose the Convert to Path option from the Select submenu. This will
  238. allow rotated text or sprites to be printed correctly using the RISC-OS
  239. 2 printer driver supplied with Laser Direct. This does not mean that it
  240. will work with all RISC-OS 2 printer drivers Ö you will have to
  241. experiment! Steve Costin, Ramsgate.
  242. 6.2
  243. Å   TV interference Ö In response to Chris Bassæ enquiry in Archive 6.1
  244. p36, here is a general procedure which covers almost all cases:
  245. 6.2
  246. 1. Does the computer interfere with your own TV, when it is as close/
  247. closer to your computer than your neighbouræs TV is? (On either side of
  248. a party wall they could be less than 1 m apart!)
  249. 6.2
  250. If YES, go to 2. If NO, go to 3.
  251. 6.2
  252. 2. Does the interference disappear when the computer is 3 m or more from
  253. the TV?
  254. 6.2
  255. If YES, agree with your neighbour to move your computer and his TV so
  256. that they are more than 3 m apart. If moving them apart is inconvenient,
  257. you could try sticking cooking foil on to the party wall (under the wall
  258. covering, eventually). You need a minimum of about 2 m by 2 m, and there
  259. is usually no point in earthing it, but you could try the effect.
  260. 6.2
  261. In some types of building, your computer might be too close to your
  262. neighbouræs TV aerial, in which case moving them apart is the best bet.
  263. 6.2
  264. If NO, the computer may be faulty. Many dealers may not be able to cope
  265. with this type of fault, so you, or your dealer, should contact Acorn
  266. with a FULL description of the problem.
  267. 6.2
  268. 3. If NO to question 1, your neighbouræs TV has either an inadequate
  269. aerial or inadequate Éimmunityæ. (This is a technical term describing
  270. Éresistance to electromagnetic disturbancesæ.) An inadequate aerial
  271. usually also gives Éfuzzyæ pictures and/or ghosts (outlines of images
  272. displaced sideways). The aerial itself may be OK; the fault may be in
  273. the downlead. They tend to fill up with water and deteriorate after a
  274. time. A new aerial (and downlead) is quite inexpensive, even a large
  275. one. If the aerial is not the problem, the manufacturer of the receiver
  276. should be contacted, either directly or through the TV dealer or rental
  277. company, regarding the probable lack of immunity of the TV. Manufac
  278. turers (of TVs and computers) are quite concerned about this at present,
  279. because of an EC Directive on the subject.
  280. 6.2
  281. 4. If all else fails, the DTI Radio Investigation Service will look at
  282. the problem and give advice but there is a fee of about ú21 involved.
  283. The Service has much information and experience of such problems and
  284. their cures, including private information about know immunity problems.
  285. For Lincolnshire, the address is (or was) PO Box 2500, Nottingham NG8
  286. 3SS. The head office is at Waterloo Bridge House, Waterloo Road, London
  287. SE1 8UA. A book, ÉHow to improve Television and Radio Receptionæ is/was
  288. available from the Service, and gives a good deal of information on
  289. interference problems (some of it technical).á John Woodgate, Rayleigh,
  290. Essex.ááA
  291.  
  292.  
  293.  
  294. Hints, Tips and Letters
  295. 6.2
  296. A combined selection this month, since the hints and tips stem from
  297. letters I have received recently.
  298. 6.2
  299. ÅáKey Windowá/áImpression problem:ááI am grateful to Jack Evans of
  300. Bristol for pointing out this problem to me, particularly since I am the
  301. author of the program in question. Key Window (available on Shareware 47
  302. ù see review in Archive 6.1 p31) is a program which displays keystrips
  303. in a window, and the strips update themselves as you move the caret
  304. between tasks.
  305. 6.2
  306. The problem is that if you have Key Window running at the same time as
  307. you are editing a document in Impression which is set to auto-save, the
  308. auto-save doesnæt work. You can still save manually of course, but this
  309. is something which is easy to forget about. The solution is easily
  310. effected, if not very satisfactory. You have to de-select ÉSense caretæ
  311. in Key Windowæs Options menu. Unfortunately, this will prevent Key
  312. Window from changing keystrips as you move between applications. If you
  313. use Impressionæs auto-save a lot, and want to disable Key Windowæs
  314. interference permanently, you can edit the !Run file to disable the
  315. Ésense caretæ option via a system variable. Full instructions for doing
  316. this are provided in the file.
  317. 6.2
  318. Users may be interested to know that I have just started work on version
  319. 2 of Key Window, and am re-writing it from scratch to make it a much
  320. better program with enhanced facilities. I intend to approach Computer
  321. Concepts about the problem, to see if a satisfactory solution can be
  322. found. Other programs with auto-save facilities, such as Ovation and
  323. Vector, do not appear to suffer from the problem.
  324. 6.2
  325. ÅáProtecting Impression files:ááCharles Martin from the Isle of Wight
  326. has been having a few problems with some Impression Étemplateæ files ù
  327. empty documents with standard formats. He wants to make them Delete- and
  328. Write-protected via the fileræs Access menu but has found that setting
  329. the files (which are, of course, in the form of application directories)
  330. to Élockedæ does not protect their contents. Similarly, opening the
  331. directories and choosing ÉSelect allæ does not have the desired effect.
  332. 6.2
  333. This situation actually applies to all applications and directories, not
  334. just Impression files. However, under RISC-OS 3, the Access menu is
  335. completely redesigned and works much better, so the problem only really
  336. affects RISC-OS 2 users. The difficulty arises because of the distinc
  337. tion that the filer makes between directories (be they normal
  338. directories or application directories) and actual files. This is one of
  339. those Éfeaturesæ of RISC-OS 2 which needs a bit of care.
  340. 6.2
  341. Under RISC-OS 3, if you select a directory or application directory
  342. (such as an Impression file) and set it to ÉProtectedæ, the filer will
  343. protect all the files within it, no matter how many sub-directories
  344. there are. Under RISC-OS 2, however, it will only set the status of the
  345. directory itself. You therefore need to open the directory, select all
  346. the files within it and set their attributes via the Access menu.
  347. However, there is a further complication: if the selection of files
  348. contains any directories, the process will be upset Ö the directories
  349. need to be deselected first.
  350. 6.2
  351. Under RISC-OS 2, to protect an Impression file, you would need to open
  352. it up, choose ÉSelect allæ from the filer menu, deselect any directories
  353. in the selection by clicking on them with <adjust>, and finally set all
  354. the filesæ attributes via the Access menu. Then repeat the process for
  355. each of the directories which you had deselected (ÉMasterChapæ,
  356. ÉChapter1æ, etc). There is simply no point in protecting the directories
  357. themselves, since it is impossible to delete a directory which contains
  358. locked files, and locking a directory (under RISC-OS 2) does not affect
  359. the access status of the files within it in any case.
  360. 6.2
  361. All in all, itæs probably easiest to upgrade to RISC-OS 3!
  362. 6.2
  363. ÅáApplause for Ovation:ááA highly enthusiastic letter about Ovation has
  364. been received from Tony Greenfield of Birmingham. He has the following
  365. to say:
  366. 6.2
  367. ö[Ovation] does just what I had hoped for and more. The manual is
  368. brilliant! It is a work book on DTP, quite good enough as an introduc
  369. tion to the subject to beginners and as an encouraging tutorial for more
  370. experienced users. I found it much more useful than First Impression. I
  371. have learnt much about Impression II and much about how a manual should
  372. be presented. I wonder if the reason that there are not many hints and
  373. tips on using Ovation [in Archive] is because the user manual is so
  374. clear? (It may also have something to do with the relative numbers of
  375. people using the two packages. Ed.) There are many features which I like
  376. about the program. In fact, there is not very much missing ù I wonder
  377. if, for most people, Impression is not really required Ö after all, itæs
  378. more expensive than Ovation. Iæm sure that, for schools who have yet to
  379. purchase a DTP package, Ovation would be a must better buy than
  380. Impression, for many reasons Ö perhaps most of all for the ease of use,
  381. and I guess it would be easier to learn than Impression.ò
  382. 6.2
  383. Tony goes on to list various features which he likes in Ovation, notably
  384. its wide range of effects such as word underline, small caps and
  385. tracking, and its system of basing font styles on one family name, so
  386. that changing the base family will also alter the italic and bold fonts.
  387. 6.2
  388. I would certainly agree with Tonyæs comments about the manual, which is
  389. indeed a very helpful document, although I think Impression is the
  390. easier of the two to learn, as Ovation has a quite unwieldy menu
  391. structure. Perhaps the quality of the manual really is the reason why we
  392. havenæt received more tips on using the program from readers. Anyway,
  393. things are set to change from this month in Archive, with the advent of
  394. Maurice Edmundsonæs dedicated Ovation column. (We also have a new DTP
  395. editor, Ray Dawson, whose first column will appear next month.) For
  396. further comments about Ovation, see my Ovation/Impression comparison
  397. article which follows on page 33.ááA
  398.