PreviousNextIndex

AT phrase

The AT phrase of the Format phrase allows explicit positioning of frame objects, either by row and column or by pixels. The AT phrase of the Frame phrase allows explicit positioning of frames with windows or parent frames.

Syntax

AT { COLUMN column | COLUMN-OF reference-point }  
   { ROW row | ROW-OF reference-point } 
   [ COLON-ALIGNED | LEFT-ALIGNED | RIGHT-ALIGNED ] 

AT { X x | X-OF reference-point } 
   { Y y | Y-OF reference-point }  
   [ COLON-ALIGNED | LEFT-ALIGNED | RIGHT-ALIGNED ] 

AT n 

n
COLUMN column
COLUMN-OF reference-point
X x
X-OF reference-point
ROW row
ROW-OF reference-point
Y y
Y-OF reference-point
COLON-ALIGNED | LEFT-ALIGNED | RIGHT-ALIGNED
Examples

The following example uses the AT phrase to position fields within a frame.

r-at.p
DEFINE FRAME order-info 
  Order.CustNnum AT ROW 2 COLUMN 8 
  Customer.Name AT ROW 2 COLUMN 18 
  Order.OrderNum AT ROW 2 COLUMN 50 
  Order.OrderDate AT ROW 2 COLUMN 65 
  WITH TITLE "Order Information". 
  
FOR EACH Order NO-LOCK BREAK BY Order.CustNum WITH FRAME order-info: 
  IF FIRST-OF(Order.CustNum) THEN DO:  
    FIND Customer OF Order NO-LOCK. 
    DISPLAY Order.CustNum Customer.Name. 
  END. 
  DISPLAY Order.OrderNum Order.OrderDate. 
END. 

The following example uses relative positioning to position fields relative to the CustNum field.

r-at1.p
DEFINE FRAME order-info 
  Order.CustNum AT X 50 Y 14 
  Customer.Name AT X-OF Order.CustNum + 100 Y 14  
  Order.OrderNum AT X-OF Order.CustNum + 225 Y 14 
  Order.OrderDate AT X-OF Order.CustNum + 320 Y 14 
  WITH TITLE "Order Information" NO-LABELS. 
FOR EACH Order NO-LOCK 
  BREAK BY Order.CustNum WITH FRAME order-info: 
  IF FIRST-OF(Order.CustNnum) THEN DO: 
    FIND Customer OF Order NO-LOCK. 
    DISPLAY Order.CustNum Customer.Name. 
  END. 
  DISPLAY Order.OrderNum Order.OrderDate. 
END. 

Notes
See also

DEFINE FRAME statement, FORM statement, Frame phrase


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex