Chapter Contents |
Previous |
Next |
SAS Companion for UNIX Environments |
Using the SASCOLOR Window |
Tools | Options | Colors... |
SASCOLOR Window
To change a color for a window element, select the element name, and then select color and attribute that you want assigned to the element.
The BLINK attribute is not supported. The HIGHLIGHT attribute causes text to be displayed in bold font.
When you select [Save], your changes are saved to the catalog entry SASUSER.PROFILE.SAS.CPARMS.
For more information on the SASCOLOR window, refer to the online help.
Using the COLOR Command |
You can use the COLOR command to set the color for specific elements of the active window:
color field-type <color|NEXT <highlight>>
To save your changes, issue the WSAVE command. The changes are saved to SASUSER.PROFILE.window.WSAVE.
Note: 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, refer to the product documentation.)
Refer to the online help for more information on the COLOR and WSAVE commands.
Defining Color Resources |
Color resources fall into two categories:
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 its windows.
SAS.systemForeground:
colorSAS.systemBackground:
colorSAS.systemSecondaryBackground:
colorThe following table 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 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 SAS CPARM Resources. All of these resources are of type DmColor, and their default values are dynamic--that is, the default values are determined at run time.
Resource Name | Class Name | Specifies the color and attribute settings for... |
---|---|---|
SAS.cparmBackground |
CparmBackground | backgrounds within all primary windows displayed in a SAS session |
SAS.cparmForeground |
CparmBackground | all editable text fields within a SAS window |
SAS.cparmSecondaryBackground |
CparmForeground | backgrounds in dialog boxes that prompt the user (secondary windows) |
SAS.cparmBorder |
CparmBackground | the border of a primary window |
SAS.cparmSecondaryBorder |
CparmForeground | the border of a secondary window |
SAS.cparmBanner |
CparmForeground | banners within window such as the command line prompt |
SAS.cparmCommand |
CparmForeground | the command data entry field when PMENUs are disabled |
SAS.cparmMessage |
CparmForeground | the message field |
SAS.cparmNumber |
CparmForeground | line numbers |
SAS.cparmText |
CparmForeground | text labels for row information. You can use this resource within the SAS editor to identify editing lines and in spreadsheets windows to label spreadsheets rows. |
SAS.cparmInfo |
CparmForeground | text that is displayed in a window as an aid to the
user, for example:
Press Enter to continue |
SAS.cparmLabel |
CparmForeground | text that precedes a widget, such as the text
Name: in the following line is a label:
Name: ___________________ |
SAS.cparmColumn |
CparmForeground | text labels for column information. You can use this resource within the SAS editor to identify editing lines and in spreadsheet windows to label spreadsheet rows. |
SAS.cparmHelpMainTopic |
CparmForeground | topic words or phrases in the help system |
SAS.cparmHelpSubTopic |
CparmForeground | topic words or phrases in the help system |
SAS.cparmHelpLink |
CparmForeground | links to additional levels of HELP information |
SAS.cparmError |
CparmForeground | ERROR lines that are written to the Log or Output windows |
SAS.cparmMark |
CparmForeground | areas that have been selected for operations such as FIND, CUT, and COPY |
SAS.cparmNote |
CparmForeground | NOTE lines that are written to the Log or Output windows |
SAS.cparmSource |
CparmForeground | SAS source lines that are written to the Log window |
SAS.cparmData |
CparmForeground | general lines written to the Log or Output windows |
SAS.cparmFootnote |
CparmForeground | FOOTNOTE lines written to the Output window |
SAS.cparmTitle |
CparmForeground | TITLE lines written to the Output window |
SAS.cparmHeader |
CparmForeground | HEADER lines written to the Output window |
SAS.cparmByline |
CparmForeground | BY lines written to the Output window |
SAS.cparmWarning |
CparmForeground | WARNING lines written to the Log or Output windows |
DmColorName can be any one of the following colors:
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:
In some color combinations, text fields, push buttons,
check boxes, and other foreground categories may not be visible. The
SAS.dmsContrastCheck
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.