U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Display of long text
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43406&th=8995#msg_43406
A very newbie question... How do you display a long text in a dialog box ?
Yes, I know : there is a lot of ways to do that ! But often, the simplest is to have a widget like StaticText. However, if the text is long, it does not wrap it automatically. Is there some widget doing that ?]]>jibe2014-07-25T13:04:58-00:00Re: Display of long text
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43413&th=8995#msg_43413
deep2014-07-26T04:16:32-00:00Re: Display of long text
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43415&th=8995#msg_43415
Description in Help: DocEdit is form of raw text editor that interprets lines as paragraphs (wraps them).]]>ManfredHerr2014-07-26T14:13:25-00:00Re: Display of long text
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43422&th=8995#msg_43422
Thanks for your replies
deep wrote on Sat, 26 July 2014 06:16
Check if you can use "qtf"
Mmmm... I tried with RichTextView, but a simple text is not displayed the same way as with others widgets. To have the same default font, you are obliged to display true rtf text with font specification. I'm afraid that it will be the same with QTF...
ManfredHerr wrote on Sat, 26 July 2014 16:13
What about DocEdit (read only)?
Yes, it's what I use. Seems to be the best existing widget for that, but it puts a line at the end of the text. It is not a big problem, but not very beautiful... I was hoping to find something better
If there is nothing better, I think that it will be interesting to create some derived class from Static Text. What do you think ?]]>jibe2014-07-28T13:08:16-00:00