CHCACCEL (Choice Accelerator Text) Keyword for Display Files--Example

Figure 107 shows how to specify the CHCACCEL keyword:

Figure 107. Specifying the CHCACCEL Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R PULLEDIT                  CF04 CF06
A                                      PULLDOWN
A            F1             2Y 0B  1  2SNGCHCFLD
A                                      CHOICE(1 '>Undo')
A                                      CHOICE(2 '>Mark')
A                                      CHOICE(3 '>Copy')
A                                      CHCACCEL(1 'F4')
A                                      CHCACCEL(2 &F6);
A            F6             2A  P

In this example, choices 1 and 2 have accelerator keys CF04 and CF06 respectively. When the pull-down menu is displayed, the character text F4 appears to the right of the text 'Undo', with 3 spaces in between, and the text in field F6 appears to the right of the text 'Mark', with 3 spaces in between. The longest choice text determines the length of all choice text. The same is true for the ACCEL text. The ACCEL text is then started 3 spaces to the right of the longest choice.