Setting draw formatting options (SetTextAlign)ΒΆ
SetTextAlign() |
Setting draw formatting options |
SYNTAX
SetTextAlign(window_id, flags)
Sets the current formatting options for text drawn by theDrawText() function, and returns the previous options as bit flags in a i4 integer. The options control text alignment.
The GetTextAlign() function returns the current formatting flags set for a window or for the current report.
window_id |
The identifier of the window for which formatting options are to be set. If window_id is NULL, it refers to the current report. |
flags |
The formatting options to be set. These are defined as Text alignment flags in $SCULPTOR/include/draw.h, and described in detail under DrawText(). |
EXAMPLES
SetTextAlign(wintask, TA_TOP | TA_CENTER)
SetTextAlign(NULL, TA_REPORTDEFAULT)
RELATED TOPICS |