TEXALIGN

Finds the horizontal and vertical alignment of the text string
Operating state: GKOP, SGOP, WSAC, WSOP

Syntax

CALL GASK('TEXALIGN', halign, valign, return-code-variable);

Required Arguments

halign
character variable name; indicates the horizontal alignment set by the GSET('TEXALIGN', . . . ) function; returns one of the following values:
  • CENTER
  • LEFT
  • NORMAL
  • RIGHT
valign
character variable name; indicates the vertical alignment set by the GSET('TEXALIGN', . . . ) function; returns one of the following values:
  • BASE
  • BOTTOM
  • HALF
  • NORMAL
  • TOP
return-code-variable
numeric variable name; returns the return code of the routine call, which can be 0 or 8. See Return Codes for DSGI Routines and Functions.

Details

The GASK('TEXALIGN', . . . ) routine returns the current horizontal and vertical text alignment. If no values have been previously selected with the GSET('TEXALIGN', . . . ) function, GASK('TEXALIGN', . . . ) returns the default value NORMAL for both halign and valign.