home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DBCOLOR.ARC
/
COLOR.SEL
next >
Wrap
Text File
|
1985-09-30
|
3KB
|
81 lines
* COLOR.SEL
* Paul G. Ferrara [70075,252] - Last Change: 09-30-85 04:57
IF FILE("COLOR.MEM")
RESTORE FROM color ADDITIVE
ELSE
STORE "W " TO mnorf, menhb
STORE " " TO mnorb, menhf, mbord
STORE "W+ " TO mtitl, mblnk, mmess
ENDIF
STORE "B ,G ,BG ,R ,BR ,GR ,W ,B+ ,G+ ,BG+,R+ ,BR+,GR+,W+ , " TO valid
STORE 1 TO choice
DO WHILE .NOT. choice=0
SET COLOR TO &mtitl./&mnorb.,&menhf./&menhb.,&mbord
CLEAR
@ 1, 0 SAY "SELECT COLOR ATTRIBUTES"
@ 1,72 SAY date()
@ 2, 0 SAY "═══════════════════════════════════════════════════════"
@ 2,55 SAY "═════════════════════════"
@ 23, 0 SAY "═══════════════════════════════════════════════════════"
@ 23,55 SAY "═════════════════════════"
@ 24, 6 SAY "1=mono defaults 2=color defaults 3=save selections 4=test 0=exit"
@ 4,31 SAY "Current Attributes"
SET COLOR TO &mnorf./&mnorb.,&menhf./&menhb.,&mbord
@ 21, 0 SAY "─────────────────────────────────Valid Colors───────────────────────────────────"
@ 22, 9 SAY "B G BG R BR GR W [EMPTY] B+ G+ BG+ R+ BR+ GR+ W+"
@ 6,19 SAY "This is the color of the foreground text."
SET COLOR TO &menhf./&menhb.,&mnorf./&mnorb.,&mbord
@ 7,20 SAY "This is the color of the enhanced text."
SET COLOR TO &mtitl./&mnorb.,&menhf./&menhb.,&mbord
@ 8,18 SAY "This is the color of the title and prompts."
SET COLOR TO &mblnk.*/&mnorb.,&menhf./&menhb.,&mbord
@ 9,18 SAY "This is the color of the blinking messages."
SET COLOR TO &mmess./&mnorb.,&menhf./&menhb.,&mbord
@ 10,19 SAY "This is the color of the normal messages."
SET COLOR TO &mnorf./&mnorb.,&menhf./&menhb.,&mbord
@ 12,13 SAY "Normal foreground"
@ 12,43 SAY "Border"
@ 13,13 SAY "Normal background"
@ 13,43 SAY "Titles/Prompts"
@ 14,13 SAY "Enhanced foreground"
@ 14,43 SAY "Blinking Message"
@ 15,13 SAY "Enhanced background"
@ 15,43 SAY "Normal Message"
@ 17,31 SAY "Select option"
@ 12,34 GET mnorf PICTURE "!!!"
@ 13,34 GET mnorb PICTURE "!!!"
@ 14,34 GET menhf PICTURE "!!!"
@ 15,34 GET menhb PICTURE "!!!"
@ 12,61 GET mbord PICTURE "!!!"
@ 13,61 GET mtitl PICTURE "!!!"
@ 14,61 GET mblnk PICTURE "!!!"
@ 15,61 GET mmess PICTURE "!!!"
@ 17,46 GET choice PICTURE "9" RANGE 0,4
READ
CLEAR GETS
* test for valid entries
IF .NOT. mnorf$valid .OR. .NOT. menhb$valid .OR. .NOT. mnorb$valid .OR. .NOT. menhf$valid ;
.OR. .NOT. mbord$valid .OR. .NOT. mtitl$valid .OR. .NOT. mblnk$valid .OR. .NOT. mmess$valid
STORE 1 TO choice
ENDIF
DO CASE
CASE choice=1
STORE "W " TO mnorf, menhb
STORE " " TO mnorb, menhf, mbord
STORE "W+ " TO mtitl, mblnk, mmess
CASE choice=2
STORE "GR " TO mnorf
STORE "B " TO mnorb
STORE "W " TO menhf
STORE "R " TO menhb
STORE "B " TO mbord
STORE "W+ " TO mtitl
STORE "R+ " TO mblnk
STORE "R+ " TO mmess
CASE choice=3
SAVE TO color ALL EXCEPT choice
ENDCASE
ENDDO
CLEAR
RETURN