Chapter Contents


The PMENU Procedure

Example 5: Associating Menus with a FRAME Application

Procedure features:
ITEM statement
MENU statement
Other features: SAS/AF software

This example creates menus for a FRAME entry and gives the steps necessary to associate the menus with a FRAME entry from SAS/AF software.


libname proclib 'SAS-data-library';
 Note about code
proc pmenu catalog=proclib.menucat;
 Note about code
   menu frame;

 Note about code
      item 'File' menu=f;
      item 'Help' menu=h;
 Note about code
      menu f;
         item 'Cancel';
         item 'End';
 Note about code
      menu h;
         item 'About the application' selection=a;
         item 'About the keys'   selection=k;

 Note about code
            selection a 'sethelp;help';
            selection k 'sethelp;help';

Steps to Associate Menus with a FRAME

  1. In the BUILD environment for the FRAME entry, from the menu bar, select

    Properties Window

  2. In the Properties window, select the Value field for the pmenuEntry Attribute Name. The Select An Entry window opens.

  3. In the Select An Entry window, enter the name of the catalog entry that is specified in the PROC PMENU step that creates the menus.

  4. Test the FRAME as follows from the menu bar of the FRAME:

     Note about figure


    Refer to Getting Started with the FRAME Entry: Developing Object-Oriented Applications for more information on SAS programming with FRAME entries.

Chapter Contents



Top of Page

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