PRINT_LOCATE

PRINT_LOCATE X,Y

DEFINES THE POSITION IN X AND Y OF THE NEXT PRINTING BY THE COMMAND PRINT

  • Type: Command
  • Parameters: 2
  • Group: Reference

ACTION

The command PRINT_LOCATE X,Y defines the position in X and Y of the next printing by the command PRINT into the "print targeted" system object.

X and Y are expressed in pixels and the origin (0,0) of the coordinates is the upper left corner of the system object.

By default, PRINT writes into FORM number 0, but it can write into the system object number N if the command PRINT_TARGET_IS N has been performed.

The command is active only for system objects FORM and PICTURE.

SYNTAX: PRINT_LOCATE X,Y

  • X = X-component value (integer or real) of the position.
  • Y = Y-component value (integer or real) of the position.

USE

  • The command PRINT_LOCATE is used to print at a given place on a FROM or a PICTURE.

ERROR

  • If X or Y are not correct expressions.

EXAMPLE

rem print in (100,200)

print_locate 100,200

print "Hello !"

SEE ALSO

PRINT

PRINT_X_LOCATE

PRINT_Y_LOCATE

PRINT_TARGET_IS