home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
FILLTBOX.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
38 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME FILLTBOX.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-NBT1.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ TBoxFILL ( Row?, Col?, Rows?, Cols?, Char?, Attr% )
? "├─────────────────────────────────────────────────────────────────────────────
? "│ Fill an area of the screen with a character (and) attribute
? "│ A notable difference here from the Tprint routines is that attributes
? "│ 0 and 17 can be used and if you wish to only print the characters in
? "│ the current screen's attribute(s) then you must use a value of -1.
? "└─────────────────────────────────────────────────────────────────────────────
Attr? = 16
FOR Col? = 1 TO 79 ' print some color bands on the screen
INCR Attr? '
TBoxCOLOR 10, Col?, 10, 1, Attr? '
NEXT '
DELAY 1 ' dramatic pause
TBoxFILL 10, 1, 10, 79, 65, -1 ' fill them with A's screen's attrs
DELAY 1 ' the suspense builds!!!!!!
TBoxFILL 12, 20, 6, 40, 32, 7 ' clear a box in the middle