PreviousNextIndex

Frame phrase

Specifies the overall layout and processing properties of a frame for frame definition (DEFINE FRAME and FORM), block header (DO, FOR EACH, and REPEAT), and data handling (DISPLAY, SET, etc.) statements. When used on block header statements, the Frame phrase also specifies the default frame for data handling statements within the block. Frame phrases can also be used on individual data handling statements to indicate the specific frame where the statement applies.

Syntax

WITH [ ACCUM [ max-length ] ] 
     [ at-phrase ] [ ATTR-SPACE | NO-ATTR-SPACE ] 
     [ CANCEL-BUTTON button-name ] [ CENTERED ] 
     [ color-specification ] 
     [ COLUMN expression ] [ n COLUMNS ] 
     [ CONTEXT-HELP ] [ CONTEXT-HELP-FILE help-file-name ] 
     [ DEFAULT-BUTTON button-name ] 
     [ DROP-TARGET ] 
     [ [ expression ] DOWN ] [ EXPORT ]  
     [ WIDGET-ID id-number ] [ FONT expression ] 
     [ FRAME frame ]  
     [ INHERIT-BGCOLOR | NO-INHERIT-BGCOLOR ] 
     [ INHERIT-FGCOLOR | NO-INHERIT-FGCOLOR ] 
     [ KEEP-TAB-ORDER ] [ NO-BOX ] 
     [ NO-HIDE ] [ NO-LABELS ] [ USE-DICT-EXPS ] 
     [ NO-VALIDATE ] [ NO-AUTO-VALIDATE ] 
     [ NO-HELP ] [ NO-UNDERLINE ] 
     [ OVERLAY ] [ PAGE-BOTTOM | PAGE-TOP ] [ RETAIN n ] 
     [ ROW expression ] [ SCREEN-IO | STREAM-IO ] 
     [ SCROLL n ] [ SCROLLABLE ] [ SIDE-LABELS ] 
     [ size-phrase ] [ STREAM stream | STREAM-HANDLE handle ] [ THREE-D ] 
     [ title-phrase ] [ TOP-ONLY ] [ USE-TEXT ] 
     [ V6FRAME [ USE-REVVIDEO | USE-UNDERLINE ] ] 
     [ VIEW-AS DIALOG-BOX ] [ WIDTH n ] [ IN WINDOW window ] 

ACCUM [max-length]
at-phrase
ATTR-SPACE | NO-ATTR-SPACE
CANCEL-BUTTON button-name
CENTERED
color-specification
COLUMN expression
n COLUMNS
CONTEXT-HELP
CONTEXT-HELP-FILE help-file-name
DEFAULT-BUTTON button-name
DROP-TARGET

[ expression ] DOWN

EXPORT
WIDGET-ID id-number
FONT expression
FRAME frame
INHERIT-BGCOLOR | NO-INHERIT-BGCOLOR
INHERIT-FGCOLOR | NO-INHERIT-FGCOLOR
KEEP-TAB-ORDER
NO-BOX
NO-HIDE
NO-LABELS
NO-UNDERLINE
USE-DICT-EXPS
NO-VALIDATE
NO-AUTO-VALIDATE
NO-HELP
OVERLAY
PAGE-BOTTOM
PAGE-TOP
RETAIN n
ROW expression
[ SCREEN-IO | STREAM-IO ]
SCROLL n
SCROLLABLE
SIDE-LABELS
size-phrase
STREAM stream
STREAM-HANDLE handle
THREE-D
title-phrase
TOP-ONLY
USE-TEXT
V6FRAME [ USE-REVVIDEO | USE-UNDERLINE]
VIEW-AS DIALOG-BOX
WIDTH n
IN WINDOW window
Examples

The r-frame.p procedure displays the CustNum, Name, and Phone number for each Customer record. The frame phrase (starting with the word WITH) describes the frame being used to display that information.

r-frame.p
FOR EACH Customer NO-LOCK: 
  FORM HEADER  
    "No-box, No-Underline, No-labels, 5 DOWN" SKIP 
    "Centered" SKIP(2) 
    WITH NO-BOX NO-UNDERLINE NO-LABELS CENTERED 5 DOWN. 
  DISPLAY Customer.CustNum Customer.Name Customer.Phone. 
END. 

The r-frame2.p procedure produces a Customer report, using Customer List as the header for each page of the report and using Customer List Continued On Next Page as the footer for each page of the report. The OUTPUT TO statement directs all output to the file phone.lst. After running the r-frame2.p procedure, you can press GET then type the name of the file to view the contents of phone.lst.

r-frame2.p
OUTPUT TO phone.lst PAGED PAGE-SIZE 20. 
FOR EACH Customer NO-LOCK: 
  FORM HEADER "Customer List" AT 1 PAGE-NUMBER TO 60 
    WITH FRAME hdr PAGE-TOP CENTERED NO-BOX. 
  VIEW FRAME hdr. 
  FORM "Customer List Continued On Next Page" 
    WITH FRAME footr PAGE-BOTTOM CENTERED. 
  VIEW FRAME footr. 
  DISPLAY Customer.CustNum Customer.Name Customer.Phone WITH CENTERED. 
END. 
HIDE FRAME footr. 
OUTPUT CLOSE. 

Notes
See also

DEFINE FRAME statement, FORM statement, Format phrase, FRAME-COL function, FRAME-DOWN function, FRAME-LINE function, FRAME-ROW function, Stream object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex