home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
TSHADOW.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
53 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME TSHADOW .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
? "┌─────────────────────────────────────────────────────────────────────────
? "│ DrawTShadow ( Row?, Col?, Rows?, Cols?, Shadow?, Sattr? )
? "├─────────────────────────────────────────────────────────────────────────
? "│ There are a total of 7 different shadow styles and each can be in any
? "│ of 4 positions around the box. See the help screen for full details.
? "│ DrawTShadow will compute the correct position and number of rows and
? "│ columns to use so send it the same parameters as TBoxDRAW.
? "└─────────────────────────────────────────────────────────────────────────
'┌──────────────────
BLINKoff '│
R? = 12 : C? = 10 : Char? = 176 '│ displays all of
Rs? = 10 : Cs? = 30 : Sa? = 8 '│ the shadow styles
Msg$ = "Shadow Style ##" '│
FOR Sh? = 1 TO 64 '│
TBoxFILL 10, 1, 16, 80, Char?, 16 '│ clear screen area
IF Sh? < 60 THEN '│
DrawTShadow R?, C?, Rs?, Cs?, Sh?, Sa? '├ NOTE that the ROW/COL
TBoxDRAW R?, C?, Rs?, Cs?, 1, 249 '├ params are the same
ELSE '│
TBoxDRAW R?, C?, Rs?, Cs?, 1, 27 '│
DrawTShadow R?, C?, Rs?, Cs?, Sh?, 16 '│
END IF '│
Tprint R?+1, C?+2, USING$( Msg$, Sh? ), 0 '│
IF fAnyKey% = 27 THEN EXIT FOR '│ await key-press
IF ( Sh? MOD 10 ) = 4 THEN '│
INCR Sh?, 6 '│ jump to next set
Sa? = 16 : Char? = 32 '│
END IF '│
NEXT '│
TBoxFILL 10, 1, 16, 80, 32, 7 '│
BLINKon '└──────────────────