Progress
Programming
Handbook
Positioning Frames with FRAME–LINE
The FRAME–LINE function gives you information on the position of the current display line in a frame. The following procedure uses this information to determine how to display other information in the frame:
The
p-frline.p
procedure lets the user update a customer’s number, name, and credit limit. The procedure displays information in the frame for one customer at a time. You can press CTRL–G at any time to see a prompt to delete the customer. The prompt always appears in its own frame, below the last customer displayed.This procedure produces the following output:
![]()
The FRAME–LINE function in this procedure controls where the ans variable is displayed. The position of the prompt is calculated from the upper-right corner of frame a and the current line within the frame. That is, FRAME–ROW + 1 + FRAME–LINE gives the position of the current line in the frame, taking into account the lines for the frame box and the labels. The prompt is placed below the current line.
See the Progress Language Reference for more information on the FRAME–LINE function.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |