Chapter Contents

Previous

Next
SAS/AF Software: Class Dictionary

Using the Icon Class

When you create your own icons (on hosts with interfaces that support this), store the icons as bitmaps in a directory. The path for this directory and the icon numbers are specified in the window system's resource file. To use your own icons, you must tell the SAS System the name of the library or file where the user-defined icons are stored. To access the icon resource file on PC hosts, you must invoke the SAS System using the -USERICON system option. To access the icon resource file on UNIX or VAX systems running the X Window System, you must use a series of X resources.


Icon Examples

Assume that you want an entry called TENNIS.FRAME to execute when ICON1 is selected.

  1. In the Value on Selection window, enter tennis.frame in the Value field.

  2. Include the following code in your SCL program:
    ICON1:
       call display(icon1);
    return;

You can accomplish the same thing by accessing the Command Processing window and assigning afappl c=sasuser.test.tennis.frame to the Execute SAS commands on selection field. In this case, the SCL code shown previously is not needed. When you select the icon, the entry SASUSER.TEST.TENNIS.FRAME executes.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.