home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
super25n.zip
/
COLORS.DOC
< prev
next >
Wrap
Text File
|
1993-01-05
|
3KB
|
90 lines
┌───────────────────────────────┐
│ SuperLib 2.50 │
│ For Clipper S87 and 5.01 │
│ ------------------------- │
│ copyright 1990 │
│ Garry A Prefontaine │
└───────────────────────────────┘
Color Usage
-----------
This is not the perfect color scheme. It is the one this library runs
on.
Several global color variables are used by the functions. These are:
c_normcol - For normal input/output
c_normmenu - For normal 'menu to' operations
c_popcol - For popup box colors
c_popmenu - For popup box menus
c_frame - Frame string ("┌─┐│┘─└│ ")
c_shadatt - Shadow color attribute (numeric)
c_shadpos - Shadow position (0,1,3,7,9)
c_xplode - Logical - explode windows?
All are of the format "f/b,f/b,,,f/b" (f-foreground b-background)
The function INITSUP() initializes these variables, and sets them
to their default settings. If COLORS.MEM is present, INITSUP()
will use the values for these variables contained within it.
The defaults for a color monitor are:
c_normcol = 'W/B,GR+/R,,,W/N'
c_normmenu = 'W/B,N/R,,,W/N'
c_popcol = 'N/BG,N/W,,,BG+/N'
c_popmenu = 'N/BG,W+/N,,,BG+/N'
c_frame = "┌─┐│┘─└│ "
c_shadatt = 7
c_shadpos = 1
c_xplode = .T.
If a color monitor is not detected, a default set of monochrome
colors is used. You may override this by initializing a global
variable called _SUPISCOLOR of type logical. If INITSUP() sees
this variable, it will use the value in _SUPISCOLOR instead of
the value returned by ISCOLOR(). This is helpful in instances
where ISCOLOR() sees a color card with a monochrome monitor, or
some such combination. _SUPISCOLOR must be assigned before the
first call to INITSUP().
The defaults for a mono monitor are:
c_normcol = 'W/N,N/W,,,+W/N'
c_normmenu = 'W/N,N/W,,,+W/N'
c_popcol = 'N/W,+W/N,,,W/N'
c_popmenu = 'N/W,W/N,,,+W/N'
c_frame = "┌─┐│┘─└│ "
c_shadatt = 8
c_shadpos = 1
c_xplode = .T.
The function SETCOLORS() allows interactive setting of these colors.
The variables are stored in COLORS.MEM.
Note: See INITSUP() for discussion of using alternate file and/or path
for COLORS.MEM.
Many of the functions require a numeric color parameter. The file
COLORS.EXE and the Norton Guide Datafile contain conversion charts
for color string to color integer.
The functions STANDARD(), ENHANCED() & UNSELECTED() return the
numeric equivalents for the current SETCOLOR() setting.
These refer to the three active parts of a color string:
For example, in the following color string:
W/N,W/R,,,+GR/N
standard = W/N , numeric equivalent = 7
enhanced = W/R , numeric equivalent = 71
unselected = +GR/N , numeric equivalent = 14
COLORS.EXE will display a grid showing you color string to number
conversions.