暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

AS400 DSPF 之 WINDOW 弹窗(一)

啊皮 2021-07-29
862

Example 1

The following example shows how to specify the WINDOW keyword to define a window.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A R WINDOW1 WINDOW(4 20 9 30 *NORSTCSR)
A FIELD1 8A B 5 10
A FIELD2 10A B 6 10
A R WINDOW2 WINDOW(*DFT 9 30 *NOMSGLIN)
A

When the WINDOW1 record is displayed, the upper-left corner of the window border is on line 4 position 20 of the display. The lower-right corner of the border is located 10 lines lower than the upper border and 33 positions to the right of the left border.

  • Lower border line = upper border line + window-lines + 1

  • Right border position = left border position + window-positions + 3

The FIELD1 field starts 2 lines lower than the upper border and 11 positions (the ending attribute byte for the border character has been taken into account) to the right of the left border character (line 6, position 31 on the display).

  • Actual field line = upper border line + line number of field

  • Actual field position = left border position + position of field + 1

The FIELD2 field starts 6 lines lower than the upper border and 11 positions to the right of the left border (line 10, position 31 on the display).

【中文翻译】 固定弹窗 对应的 定在第四行,第20位弹窗 9*30 大小的弹窗对应的字段则是在弹窗里面的行数,比如 5.10,对应的在弹窗第四行开始后面的第五行开始,也就是对应整个DSP第九行

If the cursor is moved outside of the window, the function keys will remain active.

When the WINDOW 2 record is displayed, the upper-left corner of the window border is at the cursor position during run time. The message line does not appear inside the window, it appears at the bottom of the display.

If the cursor is moved outside of the window, the function keys are inactive. If the user presses a function key, they will receive a beep and the cursor will be place within the window.

【中文翻译  就是指对应DSP 游标对应弹窗 ,一般是在对应的字段需要给到User做解释的时候,按F4基础上做WINDOW弹窗,一般结合SUBFILE 做select

具体可以看下一节


文章转载自啊皮,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论