home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd503
/
daxid_smith
/
readme.amos
/
readme.amosSourceCode
Wrap
AMOS Source Code
|
1986-08-03
|
9KB
|
269 lines
Dim LINE$(200)
Global PAGE,LINE$(),PAGEMAX,LINEMAX
'
Screen Open 1,640,256,16,Hires
Curs Off : Flash Off
Cls 0
Gr Writing 0
Reserve Zone 10
Paper 9 : Pen 1
Limit Mouse 128,42 To 448,294
Colour 0,$AAE
Colour 1,0
Colour 2,$CCF
Colour 3,0
Colour 4,$EEF
'
Colour 5,$558 : Rem___shadow for windows
Colour 6,$DDF : Rem___highlight for windows
Colour 7,$AAD : Rem___background for windows
'
Colour 8,$99E : Rem___control buttons
Colour 9,$66B
Colour 10,$337
'
Colour 15,$F70
Colour 17,0
Colour 18,$F00
'
Ink 1
QX=30 : QY=230 : Rem___buttons
For I=1 To 4
Ink 9
Bar QX,QY To QX+135,QY+15
Ink 8
Polyline QX,QY+15 To QX,QY To QX+135,QY
Polyline QX+1,QY+15 To QX+1,QY+1 To QX+135,QY+1
Draw QX+2,QY To QX+2,QY+15
Ink 10
Polyline QX,QY+15 To QX+135,QY+15 To QX+135,QY+1
Polyline QX+1,QY+14 To QX+134,QY+14 To QX+134,QY+2
Draw QX+133,QY+2 To QX+133,QY+15
Ink 4 : Bar QX+1,QY+1 To QX+3,QY+2
Set Zone I,QX,QY To QX+135,QY+15
Add QX,147
Next I
Ink 1
Text 60,240,"Next page"
Text 195,240,"Previous page"
Text 370,240,"Print"
Text 520,240,"Quit"
'
QX=30 : QY=4 : Rem___header
Ink 9
Bar QX,QY To QX+588,QY+15
Ink 8
Polyline QX,QY+15 To QX,QY To QX+588,QY
Polyline QX+1,QY+15 To QX+1,QY+1 To QX+588,QY+1
Draw QX+2,QY To QX+2,QY+15
Ink 10
Polyline QX,QY+15 To QX+588,QY+15 To QX+588,QY+1
Polyline QX+1,QY+14 To QX+587,QY+14 To QX+587,QY+2
Draw QX+586,QY+2 To QX+586,QY+15
Ink 4 : Bar QX+1,QY+1 To QX+3,QY+2
Locate ,1 : Centre "D_Solve Crossword (c)David Smith 1993"
'
WORDS
PAGE_ONE
PAGE=1
PAGEMAX=4 : Rem___set this according to each file
LINEMAX=100 : Rem___set according to each file
'
Do
If Mouse Key=1 and Mouse Zone=1 : Rem___next
Ink 4
Text 60,240,"Next page"
While Mouse Key=1 : Wend
Ink 1
Text 60,240,"Next page"
Cls 0,6,20 To 634,229
Add PAGE,1
If PAGE>PAGEMAX
PAGE=1
End If
WHICH_PAGE
End If
If Mouse Key=1 and Mouse Zone=2 : Rem___previous
Ink 4
Text 195,240,"Previous page"
While Mouse Key=1 : Wend
Ink 1
Text 195,240,"Previous page"
Cls 0,6,20 To 634,229
Add PAGE,-1
If PAGE<1
PAGE=PAGEMAX
End If
WHICH_PAGE
End If
If Mouse Key=1 and Mouse Zone=3 : Rem___print
Ink 4
Text 370,240,"Print"
While Mouse Key=1 : Wend
Ink 1
Text 370,240,"Print"
D_PRINT
End If
If Mouse Key=1 and Mouse Zone=4 : Rem___quit
Ink 4
Text 520,240,"Quit"
While Mouse Key=1 : Wend
Ink 1
Text 520,240,"Quit"
Fade 1 : Wait 25
Edit
End If
Loop
'
Procedure WORDS
LINE$(1)="D_Solve Crossword Written and compiled using AMOS Professional"
LINE$(2)=" "
LINE$(3)="Crossword Compilations, and Program (c)David Smith 1993"
LINE$(4)=" "
LINE$(5)="This program is available on Public Domain. The disc contains:"
LINE$(6)="1. Readme file"
LINE$(7)="2. Crossword file"
LINE$(8)="3. Two crossword formats, with accompanying solutions"
LINE$(9)=" "
LINE$(10)="If you enjoy these, and would like more to try, send your disc,"
LINE$(11)="together with �1-50 (inc p+p) to:"
LINE$(12)=" "
LINE$(13)="David Smith"
LINE$(14)="The Old Bell"
LINE$(15)="Whittington"
LINE$(16)="Kings Lynn"
LINE$(17)="Norfolk PE33 9TE"
LINE$(18)=" "
LINE$(19)="I will load a further two solution files, and format files"
LINE$(20)="as necessary, onto your disc, which I shall then return."
LINE$(21)="Please make sure your name and address are on the disc!"
LINE$(22)=" "
LINE$(23)=" "
LINE$(24)="The program..."
LINE$(25)=" "
LINE$(26)="Instruction screen:"
LINE$(27)=" "
LINE$(28)="Instructions for basic loading, saving and using the "
LINE$(29)="program. Loading is done in two stages: 1) load the FORMAT"
LINE$(30)="file, or the crossword skeleton, and 2) loading the SOLUTION"
LINE$(31)="file, which contains the clues and answers."
LINE$(32)=" "
LINE$(33)="Loading the files:"
LINE$(34)=" "
LINE$(35)="The format and solution files are loaded in that order. Select"
LINE$(36)="by double clicking on required files, or single click followed"
LINE$(37)="by click on <OK>. Make sure that the code numbers (but not"
LINE$(38)="necessarily the letters) are the same for both Format and "
LINE$(39)="Solution. For example, Format 1.iff will be compatible with"
LINE$(40)="Solution 1a.sol, Solution 1b.sol, and so on. When both are"
LINE$(41)="selected the crossword screen will appear, with the first"
LINE$(42)="across and down clues displayed, and the appropriate"
LINE$(43)="crossword squares highlighted."
LINE$(44)=" "
LINE$(45)="Selecting a clue:"
LINE$(46)=" "
LINE$(47)="This can be done in two ways: 1) The scroll buttons "
LINE$(48)="alongside the answer windows will scroll up and down"
LINE$(49)="through across and down clues, highlighting the appropriate"
LINE$(50)="crossword squares at the same time. There will be a slight"
LINE$(51)="delay before new clues and highlighted squares are displayed."
LINE$(52)="2) Click with the left mouse button on the first square of "
LINE$(53)="the required across answer squares on the actual crossword, or"
LINE$(54)="with the right button on the first square of the down answer."
LINE$(55)="The appropriate clues will appear in the clue windows."
LINE$(56)=" "
LINE$(57)="Entering an answer:"
LINE$(58)=" "
LINE$(59)="Click in the answer window with the left mouse button, input"
LINE$(60)="the answer (if it is too long or too short it will tell you!)"
LINE$(61)="and the answer will be displayed in the appropriate squares."
LINE$(62)="Incorrect answers can be overwritten by inputting the correct"
LINE$(63)="one. To delete an answer, press <RETURN> without inputting any"
LINE$(64)="letters or spaces. Answers will appear in upper case"
LINE$(65)="automatically. Do not input spaces or punctuation."
LINE$(66)=" "
LINE$(67)="Quit:"
LINE$(68)=" "
LINE$(69)="To quit the program, and return to Workbench"
LINE$(70)=" "
LINE$(71)="Save:"
LINE$(72)=" "
LINE$(73)="To save a partly completed solution. Select the current .sol"
LINE$(74)="file at the requester, or save under a new name to preserve"
LINE$(75)="the original in its blank condition."
LINE$(76)=" "
LINE$(77)="Clear:"
LINE$(78)=" "
LINE$(79)="To clear the current crossword, prior to loading another."
LINE$(80)="You will be returned to the instruction screen."
LINE$(81)=" "
LINE$(82)="The jotter pad:"
LINE$(83)=" "
LINE$(84)="This is the large window below the top row of buttons."
LINE$(85)="Click in the window with the left mouse to enter the"
LINE$(86)="pad routine. The mouse pointer will be held in the pad area"
LINE$(87)="until <EXIT PAD> is clicked. Once the jotter pad is active"
LINE$(88)="text can be written at the last mouse click position. It is"
LINE$(89)="a very simple text device. It will not carriage return, or"
LINE$(90)="backspace, and nor will the cursor keys operate. Text can be "
LINE$(91)="placed anywhere within the window by clicking with the left"
LINE$(92)="mouse. The pad can be cleared using the <CLEAR PAD> button,"
LINE$(93)="or more selectively by dragging a box with the right button."
LINE$(94)="Exiting will not clear the pad, but <CLEAR PAD> can be"
LINE$(95)="selected whether the pad is active or not."
LINE$(96)=" "
LINE$(97)="Answer button:"
LINE$(98)=" "
LINE$(99)="Clears the jotter pad and displays the correct answers"
LINE$(100)="to the current clues."
End Proc
'
Procedure WHICH_PAGE
If PAGE=1 : PAGE_ONE : End If
If PAGE=2 : PAGE_TWO : End If
If PAGE=3 : PAGE_THREE : End If
If PAGE=4 : PAGE_FOUR : End If
End Proc
'
Procedure PAGE_ONE
Paper 9
Locate 65,1 : Print "Page 1 "
Paper 0
For L=1 To 25
Locate 4,L+2 : Print LINE$(L)
Next L
End Proc
'
Procedure PAGE_TWO
Paper 9
Locate 65,1 : Print "Page 2 "
Paper 0
For L=1 To 25
Locate 4,L+2 : Print LINE$(L+25)
Next L
End Proc
'
Procedure PAGE_THREE
Paper 9
Locate 65,1 : Print "Page 3 "
Paper 0
For L=1 To 25
Locate 4,L+2 : Print LINE$(L+50)
Next L
End Proc
'
Procedure PAGE_FOUR
Paper 9
Locate 65,1 : Print "Page 4 "
Paper 0
For L=1 To 25
Locate 4,L+2 : Print LINE$(L+75)
Next L
End Proc
'
Procedure D_PRINT
Lprint
For P=1 To LINEMAX
Lprint LINE$(P)
Next P
End Proc