PULLDOWN (Pull-Down Menu) Keyword for Display Files--Example

PULLDOWN (Pull-Down Menu) Keyword for Display Files shows how to specify the PULLDOWN keyword:

Figure 230. Specifying the PULLDOWN Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R MENUBAR                   MNUBAR
A            MNUFLD         2Y 0B  1  2
A                                      MNUBARCHC(1 PULLFILE 'File       ')
A                                      :
A                                      :
A          R PULLFILE                  PULLDOWN
A            :
A            :
A

In this example, record PULLFILE is defined as a pull-down menu for a menu-bar choice. When record PULLFILE is written, the system saves it and displays it when it is selected from the menu bar. When the system displays the PULLFILE record, it calculates the dimensions needed for the pull-down window based on the contents of the PULLFILE record, and generates the pull-down border accordingly.