home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
NEWCOLOR.ARC
/
NEWCOLOR.PRG
< prev
next >
Wrap
Text File
|
1986-05-29
|
2KB
|
65 lines
* NEWCOLOR.PRG
* AUTHOR: Steve Titterud
* Copyright 1986 all rights reserved
* NOTES: A color selection module which uses procedure file NEWCOLOR.PRO.
*
clea
set talk off
set echo off
set scoreboard off
set proc to newcolor.pro
set colo to w+/n,n/w,n
blinker= "w+*/n"
normal= "w+/n"
temp_nfg= "w+"
temp_nbg= "n"
temp_efg= "n"
temp_ebg= "w"
temp_brd= "w"
colortxt="7 w 8 w+ 9 gr 10gr+11br 12br+13r 14r+ 15bg 16bg+17g 18g+ 19b 20b+ 21n 22n+ "
firstinstr=.t.
keygot=0
colorrow=7
arearow=12
colorflag=.f.
makelowvid=.f.
noquit=.T.
do screenup
do instruct
do whil keygot=0 .and. noquit
keygot=inkey()
do whil keygot#0
@ colorrow,3 say " "
@ arearow,11 say " "
makelowvid=iif(arearow=13 .or. arearow=15 .or. arearow=16,.t.,.f.)
colorrow=iif(makelowvid .and. mod(colorrow,2)=0,colorrow-1,colorrow)
do case
case keygot=5 .and. colorflag
colorrow=iif(makelowvid,iif(colorrow=7,21,colorrow-2),iif(colorrow=7,22,colorrow-1))
case keygot=24 .and. colorflag
colorrow=iif(makelowvid,iif(colorrow=21,7,colorrow+2),iif(colorrow=22,7,colorrow+1))
case keygot=5 .and. .not. colorflag
arearow=iif(arearow=12,16,arearow-1)
case keygot=24 .and. .not. colorflag
arearow=iif(arearow=16,12,arearow+1)
case keygot=13 .and. .not. colorflag
colorflag=.t.
case keygot=13 .and. colorflag
do temp_set
do sampler
set colo to &normal
colorflag=.f.
endc
@ colorrow,3 say iif(colorflag, "══" , " " )
@ arearow,11 say "══"
noquit=iif(keygot=113,.F.,.T.)
keygot=0
endd
endd
clos proc
set colo to &temp_nfg/&temp_nbg,&temp_efg/&temp_ebg,&temp_brd
set talk on
set echo on
clea
retu