Sign in Join
FPDoc Onlineexperiment

SetTextJustify procedure

In unit Graph

Set text placement style.

Declaration

pascal
procedure SetTextJustify(horiz: Word; vert: Word)

Description

SetTextJustify controls the placement of new text, relative to the (graphical) cursor position. Horizontal controls horizontal placement, and can be one of the following predefined constants:

LeftText
Text is set left of the pointer.
CenterText
Text is set centered horizontally on the pointer.
RightText
Text is set to the right of the pointer.

Vertical controls the vertical placement of the text, relative to the (graphical) cursor position. Its value can be one of the following predefined constants :

BottomText
Text is placed under the pointer.
CenterText
Text is placed centered vertically on the pointer.
TopText
Text is placed above the pointer.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.