Specifies how ellipsis is placed in text not fitting in allocated rectangle.
TEllipsisPosition = ( epNone, epPathEllipsis, epEndEllipsis, epWordEllipsis );
enum TEllipsisPosition { epNone, epPathEllipsis, epEndEllipsis, epWordEllipsis };
StdCtrls
TEllipsisPosition specifies how an ellipsis is placed in text that does not fit in its allocated rectangle. The constants here correspond to constants specifying ellipsis placement in the dwDTFormat parameter of the Windows DrawText and DrawTextEx functions.
The following table lists values for TEllipsisPosition:
Value |
Meaning |
epNone |
An ellipsis is not inserted. |
epPathEllipsis |
Replaces text in the middle with an ellipsis so that the resulting text fits in the rectangle specified. If the text contains backslash (\) characters, treat the text as a path and attempt to preserve as much text as possible after the last backslash. Corresponds to a value of DT_PATH_ELLIPSIS in the dwDTFormat parameter. |
epEndEllipsis |
Replaces text at the end with an ellipsis so that the resulting text fits in the rectangle specified. Any word not fitting in the rectangle is truncated without adding an ellipsis. Corresponds to a value of DT_END_ELLIPSIS in the dwDTFormat parameter. |
epWordEllipsis |
Truncates any word that doesn't fit in the rectangle and adds ellipses. Corresponds to a value of DT_WORD_ELLIPSIS in the dwDTFormat parameter. |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|