SAS 9.1 Companion For Unix Enivronments

Specifying User -Defined Icons in UNIX Environments

Why Specify User-Defined Icons?

You can add your own icons to those icons that are supplied with SAS. For example, if you want to use your own color icons in the toolbox, define the SAS.colorUiconPath , SAS.colorUiconCount , and SAS.sasUicon x resources. Then, when you are defining tools in the tool editor, the tool editor will include your icons in the display of icons that you can choose for each tool.

How SAS Locates a User-Defined Icon

The resource name that is used to locate the icon bitmap filename for user icon number x is SAS.sasUicon x . For example, the following resource defines the filename myicon for the user icon 1 :

SAS.sasUicon1: myicon

If the resource name is not defined, SAS generates a filename of the form sasui nnn .xbm or sasui nnn .xpm . The path elements from the SAS.uiconPath or SAS.colorUiconpath resource are searched in sequence until the icon file is found or until the search path is exhausted.

For example, the following set of X resources defines a collection of color icons.

SAS.colorUiconPath: /users/jackaroe/pixmaps/ SAS.colorUiconCount: 7 SAS.sasUicon1: adsetup SAS.sasUicon2: adverse SAS.sasUicon3: altmenu SAS.sasUicon4: batch SAS.sasUicon5: is SAS.sasUicon6: patgrps SAS.sasUicon7: pctchg

The Motif interface will search for icon sasUicon1 in a file named /users/jackaroe/pixmaps/adsetup.xpm .

X Resources for Specifying User-Defined Icons

SAS uses the following resources to determine the number of user-defined icons that are available and their location.

SAS.colorUiconPath: search-path

SAS.colorUiconCount: num-icons

SAS.uiconCount: num-icons

SAS.uiconPath: search-path

SAS.sasUicon x : name

Категории