- 4.37.2.112. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.112. SetTextJustify procedure
4.37.2.112. SetTextJustify procedure
Targets: MS-DOS, Win32
Graph Unit
Sets text justification values used by
OutText and
OutTextXY.
Declaration:
procedure SetTextJustify(Horiz, Vert: DWORD);
Remarks:
Text output after a SetTextJustify will be justified around
the current pointer in the manner specified. Given the following,
SetTextJustify(CenterText, CenterText);
OutTextXY(100, 100, 'ABC');
The point (100, 100) will appear in the middle of the letter B.
The default justification settings can be restored by SetTextJustify
(LeftText, TopText). If an invalid input is passed to SetTextJustify,
GraphResult returns a value of grError,
and the current text justification settings will be unchanged.
- 4.37.2.112. -