home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
various
/
playing_with_text.amos
/
playing_with_text.amosSourceCode
Wrap
AMOS Source Code
|
1991-08-01
|
720b
|
31 lines
'
ALERT["Please help me"]
Wait 40
VERTICAL_TEXT["This Text",2,2]
Wait 40
_GETSTRING["This is an example prompt","Default Answer"]
Home : Print "You typed ";Param$
Wait Key
Edit
'
Procedure VERTICAL_TEXT[A$,X,Y]
For N=1 To Len(A$)
Locate X,Y+N
Print Mid$(A$,N,1);
Next
End Proc
Procedure ALERT[A$]
W=Windon : Window 0
Centre At(,23)+Space$(78)
Centre At(,23)+A$
Window W
End Proc
Procedure _GETSTRING[MESSAGE$,KEYBUFF$]
X=60 : Y=50 : W=Len(MESSAGE$)*8+8 : H=48
If KEYBUFF$<>"" Then Put Key KEYBUFF$
Get Cblock 1,X,Y,W,H
Box X+1,Y+1 To(X+W)-5,(Y+H)-1
Locate X Text(X+8),Y Text(Y+8) : Print MESSAGE$
Print : Locate X Text(X+8), : Input "";A$
Put Cblock 1
End Proc[A$]