home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1997
/
ARCHIVE_97.iso
/
text
/
hints
/
vol_03
/
issue_06
< prev
next >
Wrap
Text File
|
1995-02-16
|
7KB
|
208 lines
Å !chars Ö which is available as !1stchars with FWPlus version 2 and
is also available on SID + Archive BBS + various PD discs, can be used
for ömousingò text into !Draw applications.
3.6
Å !Draw Ö You can use the cursor keys for fine positioning when
drawing Bezier curves or lines.
3.6
Å !Madness Ö I was always very disappointed with this Demo Ö until I
looked at the !RunImage file and found a variable called madspeed% Ö
guess what changing it to 1 does? Rob Davison
3.6
Å !system on floppies Ö Those of you without hard discs will have
!system on various of your floppies. The trouble is that when you change
to other discs, even if they have !system on them, you will be asked to
insert the disc containing !system that the com-puter saw first of all.
To get round this, double click on !system on the current disc before
trying to launch applications from the disc.
3.6
Å Art Nouveau Ö Fills approximating to graduated, logarithmic,
circular etc can easily be Édesignedæ and saved to disc. For example:
3.6
Approx circle fill Ö Set a small grid size and switch it on. Draw
several concentric filled circles, selecting each shade as you go. Smear
the edges with Écolour mergeæ if you donæt want the bands of colour to
show. Pick it up as a brush and use with: brush, effects1, distort x (or
y). Some of the effect that Pro-Artisan and Atelier have as features can
be cobbled together with a little effort using Art Nouveau (at half the
price!). D P Allen.
3.6
Å Beware the SUM! Ö If you rely on indentation in your programs to
keep a check on the structure of the various loops, beware that SUM(A())
will cause an extra indent. Is there any way round this? Fred Hartley,
Hayes.
3.6
Å Booting Ö When booting the Archimedes up it is tempting to just
refer to applications assuming their path starts at the root ($). e.g.
!Edit Ö can be installed on the desktop using just !Edit in a boot file.
3.6
However, this will not ensure the appropriate system variable is set up
with the full pathname. Again using !Edit as example, you would get just
Ö Edit$Dir = !Edit
3.6
To avoid this put the full name in the desktop boot file, e.g.
3.6
*Run adfs:HardDisc.$.!Edit
3.6
Only of much use if, like me, you decide to set the directory yourself
while using Desktop (despite what Acorn advise!). Ian Pollock
3.6
Å Graph-Box Ö superb program but I find it very annoying that it
Édiesæ when you close the window. The following changes will give
Graphbox an icon on the iconbar. It will only Édieæ when you click
<menu> followed by Équitæ as Edit and Draw etc. This lets you clear some
valuable desktop space to write a letter or whatever. while still having
Graphbox available on the icon bar.
3.6
*BASIC
3.6
LOAD ö!GraphBox.!RunImageò
3.6
220 WHEN 3:PROCclosew(!q%):IF!q%=
3.6
w_graphbox% THEN mainclosed%=TRUE
3.6
560 quit%=FALSE:mainclosed%=FALSE
3.6
4590 WHEN0:PROCclosew(w_graphbox%)
3.6
:quit%=TRUE
3.6
5291 Icon%=sprites%:!Icon%=TRUE:
3.6
DIM Spritename% 14:$Spritename%=
3.6
ö!graphboxò:Icon%!4=0:Icon%!8=0:
3.6
Icon%!12=64:Icon%!16=68:Icon%!20=
3.6
(&311A OR (7<<28))
3.6
5292 Icon%!24=Spritename%:Icon%!28=1:
3.6
Icon%!32=12:SYS öWimp_CreateIconò
3.6
,,Icon% TO graph_iconbar%
3.6
5445 READ t$:m_iconbar%=FNcrmenu(t$)
3.6
5447 DATA ö#Graphbox,Info>w_pinfo%,
3.6
Quitö
3.6
5710 REM quit%=TRUE
3.6
6395 IF mh%=-2 AND mb%=4 OR mb%=1024
3.6
AND mi%=graph_icnbar% THEN PROCgetw
3.6
(w_graphbox%):PROCfront(w_graphbox%
3.6
,420,150):mainclosed%=FALSE
3.6
7375 WHEN-2:IFmi%=graph_icnbar% THEN
3.6
PROCpop(m_iconbar%,-1)
3.6
8219 IF menu%=m_iconbar% my%+=64
3.6
8545 WHEN m_iconbar%:IF !mlist%=1
3.6
THEN quit%=TRUE
3.6
16505 IFmainclosed%=TRUE PROCfront
3.6
(w_graphbox%,420,150):
3.6
mainclosed%=FALSE
3.6
SAVE ö!GraphBox.!RunImageò
3.6
NOTE: Graphbox claims what you have in your next slot up to a max of
640k but as the program needs only a minimum of around 200k to run,
thereæs space for a very big graph! Before loading Graphbox, drag the
Énextæ slot down to about 330k to free some more space. You can edit the
!run file and change the -max to reconfigure it more permanently. Rob
Davison
3.6
Å Installing Alerion Ö Here are the steps you must take in order to
install RISC-OS Alerion onto your hard disc:
3.6
(i) create a RAM disc with at least 432k
3.6
(ii) copy the !Alerion directory into the RAM disc
3.6
(iii) alter the RAM disc !Boot file in the !Alerion directory so that it
reads:
3.6
IconSprites <Obey$Dir>.!Sprites
3.6
(iv) also alter the !Run file so that reads:
3.6
Set Alerion$Dir <Obey$Dir>
3.6
RMClear
3.6
RMLoad MemAlloc
3.6
RMSize 320k
3.6
ScreenSize 160k
3.6
RMKill MemAlloc
3.6
Run <Alerion$Dir>.!RunImage
3.6
(v) copy the !Alerion directory from the RAM disc to your hard disc.
3.6
Å Rounding Errors Ö Try typing P.STR$(0.6) in BASIC. If you are
putting the string of a variable into a writeable menu option when
programming a wimp system and this rounding error comes up, the
resulting string can overwrite some of the data structure for your menu.
The result is often an öAbort on data transferò! This can be quite hard
to track down so be careful. DIMming the block to 5 bytes will stop a
crash but will leave the user with a 0.6666666669 to edit instead of
0.6. This can be a bit disconcerting. To solve it, set @% to round to
e.g. 2 decimal places before doing the STR$ and reset @% afterwards Ö
see 400 series BASIC Guide pp277-278 for details. Rob Davison
3.6
Å Screen modes & memory claiming Ö If your program has a proper RISC-
OS front end, it can change modes without worrying about screen memory.
If there is enough in Éfreeæ and Énextæ it will be shunted to screen
memory and the mode selected. Rob Davison
3.6
Å Synthesiser MIDI modes Ö The answer to Gerald Fittonæs problem
(issue 2.12 p 18) that his Korg synthesiser plays all channels no matter
what he does, is that his synthesiser is not in the correct MIDI mode.
3.6
All MIDI devices operate under modes. These are as below:
3.6
MIDI mode 1: OMNI On/Poly
3.6
MIDI mode 2: OMNI On/Mono
3.6
MIDI mode 3: OMNI Off/Poly
3.6
MIDI mode 4: OMNI Off/Mono
3.6
OMNI On/Off selects whether the device receives on all MIDI channels
(OMNI On) or only on one MIDI channel (OMNI Off). Poly means that the
device will be able to play two or more notes at the same time and Mono
means that it will only be able to play one at a time. The Korg will
almost certainly be in MIDI mode 1, which is how most synthesisers are
set up when they are sent from the shop. The answer is to change the
MIDI mode to 3 or 4 and to set the Korg to receive on the same MIDI
channel as Maestro is sending.
3.6
Å Wimp Resizing Ö I have written a program which needs a large area of
memory as store for data. The program works in the desktop and claims
memory via SYS öWimp_SlotSizeò. Initially, I used the BASIC statement
öEND=HIMEM + value%ò but this also changes the address of HIMEM. Loops,
procedures and local variables are stored just below HIMEM so my data
was being overwritten. I tried lowering HIMEM immediately afterwards but
things still went wrong so I use öWimp_SlotSizeò directly. BASIC is
ignorant of the new memory area and it can therefore be safely used as a
store. Use a variable öClaimer%æ and exit the Wimp_Poll loop if itæs not
zero then call Wimp_SlotSize. R.D.
3.6