Chapter Contents |
Previous |
Next |
The PMENU Procedure |
Featured in: | Building a Menu Bar for an FSEDIT Application |
MENU menu-bar; |
MENU pull-down-menu; |
Required Arguments |
Defining Pull-Down Menus |
For both menu bars and pull-down menus, follow the MENU statement with ITEM statements that define each of the items that appear on the menu. Group all ITEM statements for a menu together. For example, the following PROC PMENU step creates one catalog entry, WINDOWS, which produces a menu bar with two items, Primary windows and Other windows. When you select one of these items, a pull-down menu is displayed.
libname proclib 'SAS-data-library'; proc pmenu cat=proclib.mycat; /* create catalog entry */ menu windows; item 'Primary windows' menu=prime; item 'Other windows' menu=other; /* create first pull-down menu */ menu prime; item output; item manager; item log; item pgm; /* create second pull-down menu */ menu other; item keys; item help; item pmenu; item bye; /* end of run group */ run;
Pull-Down Menu shows the resulting menu selections.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.