home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
MOVETBOX.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
5KB
|
86 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME MOVETBOX.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NBT1.INC"
COLOR 7, 0
CLS
? "┌─────────────────────────────────────────────────────────────────────────────
? "│ TBoxUP ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
? "│ TBoxDOWN ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
? "│ TBoxLEFT ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
? "│ TBoxRIGHT ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
? "├─────────────────────────────────────────────────────────────────────────────
? "│ The box to be scrolled (moved) includes all columns and rows to be affected.
? "│ If Attr% => 0 then both attribute and characters will be moved else
? "│ If Attr% = -1 then only the characters will be moved
? "│ If Char? > 0 the vacated row or column will be filled with CHR$(Char?)
? "│ If Char? = 0 the vacated row or column will be ignored completely
? "└─────────────────────────────────────────────────────────────────────────
Char? = 219 ' REM this line then run again
FOR A? = 1 TO 15 ' all of this just creates
T$ = T$ + CHR$(17,A?,A?+64) ' and copies the text boxes
NEXT
T$ = T$ + T$
TBoxDRAW 15, 11, 9, 17, 1, 15
P% = 1
FOR R? = 16 TO 22
TprintMID R?, 12, T$, P%, 45, 0
INCR P%, 3
NEXT
S$ = fTBoxREAD$( 15, 11, 9, 17, 1 )
FOR X% = 31 TO 51 STEP 20
MID$( S$, 1, 1 ) = CHR$(X%) : TBoxWRITE S$
NEXT
Tprint 14, 12, "WITH ATTRIBUTES", 15
Tprint 14, 34, "CONTROL BOX" , 14
Tprint 14, 52, "W/OUT ATTRIBUTE", 15
Tprint 25, 13, "PRESS îANY KEY 4 TIMES FOR <UP> <DOWN> <LEFT> <RIGHT>", 11
'┌──────────────────────────────
fANYkey '│ SCROLL UP notice that each
Tprint 16, 1, " UP ", 15 '│
TBoxUP 16, 12, 7, 15, Char?, 7 '│ call uses the
TBoxUP 16, 52, 7, 15, Char?, -1 '│ same parameters
'│ for the boxes
fANYkey '│ SCROLL DOWN
Tprint 16, 1, "DOWN", 15 '│
TBoxDOWN 16, 12, 7, 15, Char?, 7 '│
TBoxDOWN 16, 52, 7, 15, Char?, -1 '│
'│
fANYkey '│ SCROLL LEFT
Tprint 16, 1, "LEFT", 15 '│
TBoxLEFT 16, 12, 7, 15, Char?, 7 '│
TBoxLEFT 16, 52, 7, 15, Char?, -1 '│
'│
fANYkey '│
Tprint 16, 1, "RIGHT", 15 '│
TBoxRIGHT 16, 12, 7, 15, Char?, 7 '│ SCROLL RIGHT
TBoxRIGHT 16, 52, 7, 15, Char?, -1 '│
'│
'│
TBoxFILL 25, 1, 1, 80, 32, 7 '│ CHANGE MESSGE LINE 25
Tprint 25, 36, "Thank you!", 13 '│
fANYkey '│
FOR X% = 1 TO 80 '│ "Exit, stage left!"
TBoxRIGHT 1, 1, 25, 80, 32, 7 '│ Snagglepuss
NEXT '└─────────────────────────────