home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
BLINK.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
49 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME BLINK .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
? "┌────────────────────────────────────────────────────────────────────────
? "│ BlinON () set blinking on (normal PowerBASIC state)
? "│ BlinkOFF () set blinking off 16 background attributes
? "│ fBlinkState? () returns current blink state ( 0 if blink is off )
? "├─────────────────────────────────────────────────────────────────────────────
? "│ Use BlinkOFF for 16 background colors but no blinking.
? "│ REMINDER: remember to set BlinkON before exiting your programs!
? "└─────────────────────────────────────────────────────────────────────────────
A% = 1000 '│ for quick padding with 0's
FOR Back? = 0 TO 15 '│ background colors
Row? = Back? + 9 '│ screen row
TBoxCOLORB Row?, 1, 1, 80, Back? '│ paint bkground for row
Col? = 2 '│ starting column
FOR Fore? = 0 to 15 '│ foreground colors
D$ = RIGHT$( USING$( "####", A% ), 3 ) '│ make a string
Tprint Row?, Col?, D$, 0 '│ print string using scrn attr
TBoxCOLORF Row?, Col?, 1, 3, Fore? '│ paint the foregrounds
INCR A%, 1 '│ next BINARY ATTR
INCR Col?, 5 '│ incr the columns
NEXT '│ next foreground
NEXT '│ next background
Tprint 25, 69, "PRESS A KEY", 14 '│ print msg
fAnyKey '│ await a key-press
BlinkOFF '│ watch the lower half
fAnyKey '│ another key please
BlinkON '│ return to normal blinking
Tprint 25, 69, " THANK YOU ", 10 '│ BE POLITE!