Question

I am using Canvas.TextRect in Delphi 7 to output something on the screen.

I need my text to be word wrapped in the rectangle.

Was it helpful?

Solution

You need to use DrawText (or DrawTextEx) with the DT_WORDBREAK flag.

See the sample in this thread.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top