TcxCanvas.TextFlags Property
Specifies if specific GDI text draw modes are active.
Declaration
property TextFlags: Longint read; write;
Property Value
Type |
---|
Longint |
Remarks
You can use this property to enable special text draw modes that text-related GDI methods have.
Flag | Description |
---|---|
ETO_CLIPPED | A text draw routine displays only the text that fits into a destination rectangle. A TextRect procedure call for the underlying canvas adds this flag to the TextFlags property. Note that the ETO_CLIPPED flag has no effect on TextOut procedure calls. |
ETO_OPAQUE | A text draw routine fills the destination rectangle with a solid color and draws text on top. This flag improves performance but does not allow you to blend text with the content of the canvas. |
ETO_RTLREADING | A text draw routine inverts the character order in a string. This flag has an effect only on locales where text has the right-to-left direction. Use this flag together with the CanvasOrientation property of the underlying canvas. |
ETO_GLYPH_INDEX | A text draw routine treats the specified string as an array of character glyph indexes in a TrueType font. Character glyphs have different indexes in different fonts, so the active font must match the font used to create the displayed text string. This flag affects only TrueType fonts. |
ETO_IGNORELANGUAGE | A text draw routine does not use special glyph placement for language-dependent right-to-left strings. |
ETO_NUMERICSLOCAL | A text draw routine uses locale-dependent digits to display numbers in the text. |
ETO_NUMERICSLATIN | A text draw routine uses only European digits to display numbers in the text. The ETO_NUMERICSLOCAL and ETO_NUMERICSLATIN flags are mutually exclusive. |
ETO_PDY | This flag affects only the GDI ExtTextOut function calls. If this flag is set, the text draw routine accepts a pointer to an array of integers as the last parameter. Each pair of integers within the array defines the horizontal and vertical displacements of adjacent character cells. |
Note
The TextFlags property maps to the TextFlags property of the underlying canvas.