Previous Page | Next Page

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.


Program

 Note about code
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 proclib.menucat.app.help;help';
            selection k 'sethelp proclib.menucat.keys.help;help';
run;
quit;

Steps to Associate Menus with a FRAME

  1. In the BUILD environment for the FRAME entry, from the menu bar, select View [arrow] 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:Build [arrow] Test

     Note about figure

    [FRAME Window]

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

Previous Page | Next Page | Top of Page