Description

The TEXTXY message is used to send output to the printer at a specific position.

Parameters

ParameterDescription of FieldsCommentsDefault
Parm1 - TextString<1> TextString"Text String"""
Parm2 - Location<1> XStarting X position0
 <2> YStarting Y position0
Parm3 - FontSame structure as Parm1 of the FONT message.Font structure.Current font
Parm4 - Repeat<1> Repeat on all pages

0=Current page only

1=Print on all pages

1

Remarks

The Location parameter sets the starting position. If the Font parameter is not specified, then the font is set to the current font from the FONT message. Use the Font parameter to print a specific font. This is useful when printing the TEXTXY on every page with the same font, because the font that is set with the FONT message may change during printing. The Repeat parameter is used to repeat the text on every page.

See also

FONTTEXTTEXTBOXTEXTCOL, Set_Printer messages. Also, Using Graphics.

Example

The following example shows how to use the TEXTXY message to print text on the page.
declare function Set_Printer
stat = Set_Printer("INIT") ;* Start printing
for i = 1 to 5
text = "The X pos = ":i: " The Y pos = ":i
stat = Set_Printer("TEXTXY", text, i:@fm:i) ;* Prints at a diagonal
next i
stat = Set_Printer("TERM") ;* End printing
  • No labels