Chapter Contents |
Previous |
Next |
SAS Companion for the OpenVMS Operating Environment |
Optionally, the SAS Installation Coordinator can create the catalog entry SASHELP.BASE.SAS.CPARMS. The color and attribute settings in this catalog become default for the site.
As an individual user, you can customize the colors in your SAS session by using one of the following methods:
color field-type <color | NEXT <highlight>>For a complete description of the COLOR command, see COLOR. The COLOR command affects only the specified element of the active window. Changes made with the COLOR command override changes entered through any of the other methods described here. To save your changes beyond your current session, do one of the following:
Note: Issuing the WSAVE ALL command will save all windows
that support the WSAVE command.
Change display
,
and then select
Save attributes
.
The WSAVE command is not available for all SAS windows. For example, with SAS/FSP or SAS/CALC software, changes are saved either through the EDPARMS or the PARMS window. To determine whether WSAVE is available for a SAS window that is not part of the SAS windowing environment, refer to the product documentation.
Both the COLOR command and the WSAVE command override actions in the SASCOLOR window. That is, COLOR and WSAVE override the use of CPARMS colors for that particular window without affecting the CPARMS values for other SAS windows.
Using the SASCOLOR Window |
Options
, and then select
Colors...
.
To change a color for a window element, select the element name, and then select the color and attribute that you want assigned to the element.
Click on [OK] to make the desired color change. You will not see your changes in windows that are already open. To see the new settings you must close the windows and re-open them.
Click on [Cancel] to ignore any changes you made and close the SASCOLOR window. To return all tools in the current toolbox to their default settings, click on [Defaults]. When you click on [Save], your changes are saved to the catalog entry SASUSER.PROFILE.SAS.CPARMS.
For more information about the SASCOLOR window, refer to the SAS online Help.
Defining Color Resources |
Color resources fall into two categories:
The two types of resources work together. The CPARMS color values use the current foreground and background definitions. For example, the following resources specify that the background of your primary windows will be CornflowerBlue:
SAS.blueBackgroundColor: CornflowerBlue SAS.cparmBackground: DmBlue
The SAS system uses
SAS.systemBackground
,
SAS.systemForeground
,
and the resources listed in Foreground and Background Color Resources to determine the colors to be used
in the SAS windows:
SAS.systemForeground
SAS.systemBackground
SAS.systemSecondaryBackground
Foreground and Background Color Resources lists all of the foreground and background color resources and their class names. All of these resources are of the type String.
Resource Name | Class Name |
---|---|
SAS.systemForeground |
SystemForeground |
SAS.systemBAckground |
SystemBackground |
SAS.systemSecondaryBackground |
Background |
SAS.blackForegroundColor |
BlackForegroundColor |
SAS.blueForegroundColor |
BlueForegroundColor |
SAS.brownForegroundColor |
BrownForegroundColor |
SAS.cyanForegroundColor |
CyanForegroundColor |
SAS.grayForegroundColor |
GrayForegroundColor |
SAS.greenForegroundColor |
GreenForegroundColor |
SAS.magentaForegroundColor |
MagentaForegroundColor |
SAS.orangeForegroundColor |
OrangeForegroundColor |
SAS.pinkForegroundColor |
PinkForegroundColor |
SAS.redForegroundColor |
RedForegroundColor |
SAS.whiteForegroundColor |
WhiteForegroundColor |
SAS.yellowForegroundColor |
YellowForegroundColor |
SAS.blackBackgroundColor |
BlackBackgroundColor |
SAS.blueBackgroundColor |
BlueBackgroundColor |
SAS.brownBackgroundColor |
BrownBackgroundColor |
SAS.cyanBackgroundColor |
CyanBackgroundColor |
SAS.grayBackgroundColor |
GrayBackgroundColor |
SAS.greenBackgroundColor |
GreenBackgroundColor |
SAS.magentaBackgroundColor |
MagentaBackgroundColor |
SAS.orangeBackgroundColor |
OrangeBackgroundColor |
SAS.pinkBackgroundColor |
PinkBackgroundColor |
SAS.redBackgroundColor |
RedBackgroundColor |
SAS.whiteBackgroundColor |
WhiteBackgroundColor |
SAS.yellowBackgroundColor |
YellowBackgroundColor |
You specify CPARMS resources just as you would specify
any other SAS X resource in an X resource file. You specify CPARMS values
either in your resource file or with the
-xrm
option, which can be used as a system option or on the SAS command line. (The
-xrm
option is also described with the SAS system option XRESOURCES=.)
Use the following syntax to specify CPARMS values:
SAS.cparmResource: DmColorName|DmAttrName\ [+ DmColorName|DmAttrName]
Resource can be any of the CPARMS resources listed in Defining the CPARMS Resource Set All of these resources are of the type DmColor, and their default values are dynamic--that is, the default values are determined at run time.
DmColorName can be any one of the following colors:
DmBLACK | DmMAGENTA |
DmBLUE | DmORANGE |
DmBROWN | DmPINK |
DmCYAN | DmRED |
DmGRAY | DmWHITE |
DmGREEN | DmYELLOW |
DmAttrName can be any one of the following attributes:
DmHIGHLIGHT |
DmUNDERLINE |
DmREVERSE |
The CPARMS resource set contains the following values:
SAS.cparmBackground
SAS.cparmBanner
SAS.cparmBorder
SAS.cparmByline
SAS.cparmColumn
SAS.cparmCommand
SAS.cparmData
SAS.cparmError
SAS.cparmFootnote
SAS.cparmForeground
SAS.cparmHeader
SAS.cparmHelpLink
SAS.cparmHelpMainTopic
SAS.cparmHelpSubTopic
SAS.cparmInfo
Press Enter to continueThe default is DmBlack.
SAS.cparmLabel
Name:
in the following example is a label:
Name: ___________________The default is DmBlack.
SAS.cparmMark
SAS.cparmMessage
SAS.cparmNote
SAS.cparmNumber
SAS.cparmSecondaryBackground
SAS.cparmSecondaryBorder
SAS.cparmSource
SAS.cparmText
SAS.cparmTitle
SAS.cparmWarning
SAS CPARMS Resources lists the resource name, SASCOLOR window element, class name, and default for each CPARMS resource. All the resources are of the type DmColor and their default values are dynamic--that is, the default values are determined at run time.
Resource Name | SASCOLOR Window Element | Class Name | Default Color | |
---|---|---|---|---|
SAS.cparmBackground |
Background | CparmBackground | DmWhite | |
SAS.cparmBanner |
Banner | CparmForeground | DmBlack | |
SAS.cparmBorder |
Border | CparmBackground | DmBlack | |
SAS.cparmByline |
Byline | CparmForeground | DmBlue | |
SAS.cparmColumn |
Column Label | CparmForeground | DmBlue/ Underline | |
SAS.cparmCommand |
Command | CparmForeground | DmBlack | |
SAS.cparmData |
Data | CparmForeground | DmBlack | |
SAS.cparmError |
Error | CparmForeground | DmRed | |
SAS.cparmFootnote |
Footnote | CparmForeground | DmBlue | |
SAS.cparmForeground |
Foreground | CparmBackground | DmBlack | |
SAS.cparmHeader |
Header | CparmForeground | DmBlue | |
SAS.cparmHelpLink |
Help Link | CparmForeground | DmGreen/ Underline | |
SAS.cparmHelpMainTopic |
Help Main Topic | CparmForeground | DmBlack | |
SAS.cparmHelpSubTopic |
Help Subtopic and Syntax | CparmForeground | DmBlack | |
SAS.cparmInfo |
Informational Text | CparmForeground | DmBlack | |
SAS.cparmLabel |
Label | CparmForeground | DmBlack | |
SAS.cparmMark |
Selected Area | CparmForeground | DmBlack/ DmReverse | |
SAS.cparmMessage |
Message | CparmForeground | DmRed | |
SAS.cparmNote |
Note | CparmForeground | DmBlue | |
SAS.cparmNumber |
Line Numbers | CparmForeground | DmBlue | |
SAS.cparmSecondaryBackground |
Secondary Background | CparmForeground | DmGray | |
SAS.cparmSecondaryBorder |
Secondary Border | CparmForeground | DmBlack | |
SAS.cparmSource |
Source | CparmForeground | DmBlack | |
SAS.cparmText |
Row Label | CparmForeground | DmBlue | |
SAS.cparmTitle |
Title | CparmForeground | DmBlue | |
SAS.cparmWarning |
Warning | CparmForeground | DmGreen |
The following example specifies that all background colors are gray and all foreground colors are black:
SAS.cparmBackground: DmGRAY SAS.cparmForeground: DmBLACK
You can add to these settings to make errors red with reverse video and warnings yellow with bolding and reverse video:
SAS.cparmError: DmRED + DmREVERSE SAS.cparmWarning: DmHIGHLIGHT + DmYELLOW + DmREVERSE
You can further add to these settings by making the background of secondary windows white:
SAS.cparmSecondaryBackground: DmWHITE
With some color combinations, text fields, push buttons, and check boxes and other foreground categories may not be visible. The following resource makes these categories legible:
SAS.dmsContrastCheck:
[True | False]
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.