PULLDOWN (Pull-Down Menu) keyword for display files

Use this record-level keyword to define a record as a pull-down menu for a menu bar. When this record is written, it is saved by the system and it is displayed later as a pull-down menu for a menu-bar choice.

The format of the keyword is:
PULLDOWN[(*SLTIND | *NOSLTIND)]
[(*NORSTCSR | *RSTCSR)]

The parameters are optional.

The SLTIND parameter specifies whether the selection indicators (such as radio buttons) for a selection field in the pull-down menu are displayed. *SLTIND specifies that the selection indicators should be displayed. *NOSLTIND specifies that the selection indicators should not be displayed. The default is *SLTIND.

The RSTCSR parameter specifies if the user should be allowed limited function when the cursor is outside of the pull-down window. When *NORSTCSR is specified and the cursor is outside of the pulldown window, the user will be allowed to press a function key and have it function as if the cursor were within the window. When *RSTCSR is specified, if the user attempts to press a function key while the cursor is outside of the pulldown window, the user will receive a beep and the cursor will be placed inside the pulldown-window. Control will not be returned to the application. The default is *NORSTCSR.

A record containing the PULLDOWN keyword is considered a window record, although the WINDOW keyword cannot be used. The system calculates the dimensions of the pull-down window and generates the border.

The following keywords cannot be specified on a record with the PULLDOWN keyword:

ALARM
ALTNAME
ALWGPH
ALWROL
ASSUME
CLEAR
CLRL
ERASE
ERASEINP

FRCDTA
HLPCLR
HLPSEQ
INVITE
INZRCD
MDTOFF
MNUBAR
OVERLAY
OVRATR

OVRDTA
PUTOVR
PUTRETAIN
RTNDTA
SFL
SLNO
USRDFN
WDWTITLE
WINDOW

Option indicators are not valid for this keyword.

Example

The following example shows how to specify 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.