====== RECT Set_Printer Message ====== ==== 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_set_printer_message|LINESTYLE]] and [[fillstyle_set_printer_message|FILLSTYLE]] messages. ==== Parameters ==== ^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\\ \\ | \\ || ==== Remarks ==== The rectangle will be printed on every page if the Repeat parameter is set. ==== See Also ==== [[bmp_set_printer_message|BMP]], [[line_set_printer_message|LINE]], [[ellipse_set_printer_message|ELLIPSE]], [[using_graphics|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