Chapter Contents |
Previous |
Next |
The PMENU Procedure |
Procedure Execution |
You must include an initial MENU statement that defines the menu bar, and you must include all ITEM statements and any SELECTION, MENU, SUBMENU, and DIALOG statements as well as statements that are associated with the DIALOG statement within the same RUN group. For example, the following statements define two separate PMENU catalog entries. Both are stored in the same catalog, but each PMENU catalog entry is independent of the other. In the example, both PMENU catalog entries create menu bars that simply list windowing environment commands the user can select and execute:
libname proclib 'SAS-data-library'; proc pmenu catalog=proclib.mycat; menu menu1; item end; item bye; run; menu menu2; item end; item pgm; item log; item output; run;
When you submit these statements, you receive a message that says that
the PMENU entries have been created. To display one of these menu bars, you
must associate the PMENU catalog entry with a window and then activate the
window with the menus turned on, as described in Steps for Building and Using PMENU Catalog Entries .
Steps for Building and Using PMENU Catalog Entries |
Templates for Coding PROC PMENU Steps |
proc pmenu; menu menu-bar; item command; ...more-ITEM-statements... run;
proc pmenu; menu menu-bar; item 'menu-item' menu=pull-down-menu; ...more-ITEM-statements... menu pull-down-menu; ...ITEM-statements-for-pull-down-menu... run;
proc pmenu; menu menu-bar; item 'menu-item' selection=selection; ...more-ITEM-statements... selection selection 'command-string'; run;
proc pmenu; menu menu-bar; item 'menu-item' menu=pull-down-menu; ...more-ITEM-statements... menu pull-down-menu; item 'menu-item' dialog=dialog-box; dialog dialog-box 'command @1'; text #line @column 'text'; text #line @column LEN=field-length; run;
proc pmenu; menu menu-bar; item 'menu-item' menu=pull-down-menu; ...more-ITEM-statements... menu pull-down-menu; item 'menu-item' dialog=dialog-box; dialog dialog-box 'command %1'; text #line @column 'text'; radiobox default=button-number; rbutton #line @column 'text-for-selection'; ...more-RBUTTON-statements... run;
proc pmenu; menu menu-bar; item 'menu-item' menu=pull-down-menu; ...more-ITEM-statements... menu pull-down-menu; item 'menu-item' dialog=dialog-box; dialog dialog-box 'command &1'; text #line @column 'text'; checkbox #line @column 'text'; ...more-CHECKBOX-statements... run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.