Progress
Programming
Handbook
Frame-level Design
The following procedure shows how Progress designs a frame:
Every data-handling statement in a procedure serves two purposes:
When Progress compiles this procedure, it designs frames as follows:
- The REPEAT block, since it displays data, automatically receives a frame. This frame is an unnamed frame and is the default frame for the block.
- The PROMPT–FOR statement uses frame a, not the default frame for the REPEAT block (because frame a is named explicitly). Progress sets up a frame that is large enough to hold the cust–num field and the quit–button.
- The DISPLAY statement does not name a specific frame, so it uses the default frame for the REPEAT block. Progress allocates enough room in that frame for the name field.
- The UPDATE statement also names frame a. Progress allocates more room in that frame to hold the buttons del–button and next–button (the frame initially was only big enough to hold the cust–num field).
To summarize, there are two frames used in this procedure. One frame, the default frame for the REPEAT block, displays the customer name. The second frame, frame a, holds the cust–num field and three buttons.
These are the defaults Progress uses when designing a frame:
- Start the frame in column 1, at the first free row on the screen.
- Enclose the frame in a box.
- Display field labels above fields (that is, use column labels).
- Underline the column labels.
- Make the frame as wide as necessary to accommodate all the items in the frame, adding more lines if everything does not fit on one line.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |