Returning current draw formatting optionsΒΆ

GetTextAlign()

Return current draw formatting options


SYNTAX

GetTextAlign(window_id)

Returns the current formatting options for text drawn by the DrawText() function as bit flags in a i4 integer. Formatting options are set using the SetTextAlign() function.

Text alignment flags are defined in $SCULPTOR/include/draw.h, and described in detail under DrawText().

Since more than one flag may be set, the bitwise and operator (&) is used to test the return value. See the example below.

window_id

The identifier of the window for which formatting options are to be returned. If window_id is NULL, it refers to the current report.


EXAMPLE

!temp FormatFlags,,i4

     FormatFlags = GetTextAlign(wintask)
     if (FormatFlags & TA_TOP)....

RELATED TOPICS

Drawing operations

Draw functions

DrawText()

SetTextAlign()