Description

The RECT message is used to print a rectangle at a specific location on the page using the current line style and fill style. The line and fill styles are set with the LINESTYLE and FILLSTYLE messages.

Parameters

ParameterDescription of FieldsCommentsDefault
Parm1 - Location<1> X1Starting X position0
 <2> Y1Starting Y position0
 <3> X2Ending X position0
 <4> Y2Ending Y position0
Parm2 - Repeat<1> Repeat on all pages0=Current page only

1=Print on all pages

 

Remarks

The rectangle will be printed on every page if the Repeat parameter is set.

See also

BMPLINEELLIPSE, Using Graphics

Example

/* The following example shows how to use the RECT message to print a rectangle on every page. */
 
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("RECT",1:@fm:1:@fm:2:@fm:3, 1) ;* Print RECT
stat = Set_Printer("TERM") ;* End printing
  • No labels