[SOLVED] StaticText with long string
Hi, I'm trying to get a text in a StaticText, but it's too long, so I can't see the end. How can I do to get the end on a new line ?
You mean that can get only 2048 characters and not more? By default this is max number of characters in Edit. All other characters cropped. If you want more you should use void Edit::setMaxTextLength(size_t _maxTextLength);
No, what I mean is that the text use only one line, but the window is too small to see the right part of the text
(Sorry for the poor english)
You can use horizontal scroll. Edit::setVisibleHScroll
If you want many lines you can enable multiline mode Edit::setEditMultiLine.
I'm searching for something like setEditMultiLine, yes, but for StaticText (or something that can display some text without background, and without editing). If possible without scroll, my StaticText is enough high to display 2 or 3 lines
Use Edit with WordWrap or WordWrapSimple (without vertical scroll bar).
It's exactly what I was looking for, thanks