You can
define the colors and attributes for specific window elements by assigning
values to SAS resources known as CPARMS. Each CPARMS resource defines
the color and attribute of a specific window element, such as the
background in a secondary window or the border of a primary window.
You can specify multiple
color and attribute names in the same resource definition, but only
the final color and attribute will be used:
SAS.cparmResource: DmColorName|DmAttrName\
<+DmColorName|DmAttrName>
Resource can be any of the CPARMS resources listed in the following table.
All of these resources are of type DmColor, and their default values
are dynamic–that is, the default values are determined at run
time.
SAS CPARMS Resources
|
Color and attribute
settings
|
|
|
|
for backgrounds within
all primary windows displayed in a SAS session.
|
|
|
|
for a banner within
a window.
|
|
|
|
for the border of a
primary window.
|
|
|
|
for BY lines written
to the Output window.
|
|
|
|
for text labels for
column information. You can use this resource within the SAS editor
to identify editing lines and in spreadsheet windows to label spreadsheets.
|
|
|
|
for the command data
entry field when menus are disabled.
|
|
|
|
for general lines written
to the Log window or the Output window.
|
|
|
|
for ERROR lines that
are written to the Log window or Output window.
|
|
|
|
for FOOTNOTE lines written
to the Output window.
|
|
|
|
for all text fields
within a SAS windowing environment window that can be edited.
|
|
|
|
for HEADER lines written
to the Output window.
|
|
|
|
for links to additional
levels of information in the Help system.
|
|
|
|
for topic words or phrases
in the Help system.
|
|
|
|
for topic words or phrases
in the Help system.
|
|
|
|
for text that is displayed
in a window as an aid to the user. For example: Press Enter to continue
|
|
|
|
for text that precedes
a widget. For example, the text Name: in
the following example is a label: Name: _______________
|
|
|
|
for areas that have
been selected for operations such as FIND, CUT, and COPY.
|
|
|
|
|
|
|
|
for NOTE lines that
are written to the Log window or the Output window.
|
|
|
SAS.cparmSecondaryBackground
|
for backgrounds in secondary
windows.
|
|
|
|
for the border of a
secondary window.
|
|
|
|
for SAS source lines
that are written to the Log window.
|
|
|
|
for text labels for
row information. You can use this resource within the SAS editor to
identify editing lines and in spreadsheet windows to label spreadsheet
rows.
|
|
|
|
for TITLE lines written
to the Output window.
|
|
|
|
for WARNING lines written
to the Log window or the Output window.
|
|
|
DmColorName can be any one of the following colors:
DmAttrName can be any one of the following attributes:
For example, the following
resources specify that all background colors are gray and all foreground
colors are black:
SAS.cparmBackground: DmGRAY
SAS.cparmForeground: DmBLACK
These resources specify
that errors should be displayed in red with reverse video, and warnings
should be displayed in yellow with reverse video and a bold font:
SAS.cparmError: DmRED + DmREVERSE
SAS.cparmWarning: DmHIGHLIGHT + DmYELLOW + DmREVERSE
SAS looks for default
CPARMS resources in two places:
-
If your on-site SAS support personnel
entered color and attribute settings in the SASHELP.BASE.SAS.CPARMS
catalog entry, then these settings become the default for your site.
-
If you saved settings in SASUSER.PROFILE.SAS.CPARMS,
then these settings override the settings specified for your site.