Progress
Programming
Handbook


Frame-level Design

The following procedure shows how Progress designs a frame:

p-frm17.p
DEFINE BUTTON del-button LABEL "Delete Customer"
   TRIGGERS:
      ON CHOOSE
          DELETE customer.
   END.
DEFINE BUTTON next-button LABEL "Find Another Customer" AUTO-GO. 
DEFINE BUTTON quit-button LABEL "Quit" AUTO-ENDKEY.

REPEAT:
        PROMPT-FOR customer.cust-num quit-button WITH FRAME a.
        FIND customer USING cust-num.
        DISPLAY name.
        UPDATE del-button next-button quit-button WITH FRAME a. 
END. 

Every data-handling statement in a procedure serves two purposes:

When Progress compiles this procedure, it designs frames as follows:

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:


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095