guides:programming:programmers_reference_manual:rect_set_printer_message

RECT Set_Printer Message

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.

Parameter
Description of Fields
Comments
Default
Parm1 - Location
<1> X1
Starting X position
0

<2> Y1
Starting Y position
0

<3> X2
Ending X position
0

<4> Y2
Ending Y position
0
Parm2 - Repeat
<1> Repeat on all pages
0=Current page only

1=Print on all pages


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

/*
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
 
 
  • guides/programming/programmers_reference_manual/rect_set_printer_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1