Wrap text in canvas

cstangor

Member
Licensed User
Longtime User
Sorry, is there an easy way to make lines wrap in a canvas instead of being truncated.

ty
 

cstangor

Member
Licensed User
Longtime User
OK, maybe it's a more general question.

I have text that I want to format and place on a panel. The text should have indents, line spacing, etc.

Do I write the text directly to the panel?

Do I write the text to a bitmap then draw the bitmap?

Regardless, what is the best way?

Thanks
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I would suggest you to look at the RichString library and put the text onto a Label insted of a Panel.
I'm afraid that Canvas has no formatting functions.
Perhaps OpenGL graphics, but I have no experience in OpenGL.

Best regards.
 
Upvote 0
Top