Integer constants specifying the method of formatting the text.
Name |
Value |
Description |
aformDrawTextTop |
0 |
Top. Specifies top-justified text (single line only). |
aformDrawTextLeft |
0 |
Left. Aligns the text flush-left. |
aformDrawTextCenter |
1 |
Center. Centers the text horizontally. |
aformDrawTextRight |
2 |
Right. Aligns the text flush-right. |
aformDrawTextVCenter |
4 |
Vertical Center. Specifies vertically centered text (single line only). |
aformDrawTextBottom |
8 |
Bottom. Specifies bottom-justified text. This value must be combined with aformDrawTextSingleLine. |
aformDrawTextWordBreak |
16 |
Word break. Specifies word-breaking. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by fWidth and fHeight. A carriage return–linefeed sequence will also break the line. |
aformDrawTextSingleLine |
32 |
Single line. Specifies single line only. Carriage returns and linefeeds do not break the line. |
aformDrawTextExpandTabs |
64 |
Expand tabs. Expands tab characters. The default number of characters per tab is eight. |
aformDrawTextTabStop |
128 |
Tab stop. Sets tab stops. The high-order byte of enumAFormDrawText is the number of characters for each tab. The default number of characters per tab is eight. |
aformDrawTextNoClip |
256 |
No clip. Draws without clipping. DrawText is somewhat faster when aformDrawTextNoClip is used. |
aformDrawTextExternalLeading |
512 |
External leading. Includes the font’s external leading in the line height. Normally, external leading is not included in the height of a line of text. |
aformDrawTextCalcRect |
1024 |
Calculate the rectangle. Determines the width and height of the rectangle. If there are multiple lines of text, DrawText will use the width of the rectangle indicated by fWidth and extend the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText will modify the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text, but does not draw the text. |
aformDrawTextNoPrefix |
2048 |
No prefix. Turns off processing of prefix characters. Normally, DrawText interprets the ampersand (&) mnemonic-prefix character as a directive to underscore the character that follows, and the two-ampersand (&&) mnemonic-prefix characters as a directive to print a single ampersand. By specifying aformDrawTextNoPrefix, this processing is turned off. |