Can your Edit Box do automatic word wrap?
I need to get quite long strings out of a text file script and print them into an edit box. I also need to have each new line I print go under the existing text, not rewrite it.
Plus I obviously then need a vertical scroll bar. I do all this at the moment with a Win32 Rich Text Edit Control.
I also change text colour for new text so each line alternates colour. Can I do that with your Edit control?
m0ng00se
Edit Box Question
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Hi,
except for your last wish (different colour per line) i think we might have in store what you need
Both the MultilineEditbox and the StaticText widget support multiple lines with an automatic scrollbar and wrapping options. The first one is (optionally) editable, the second is readonly. For details please visit this page:
http://www.cegui.org.uk/wiki/index.php/WidgetGalore
Good luck!
except for your last wish (different colour per line) i think we might have in store what you need
Both the MultilineEditbox and the StaticText widget support multiple lines with an automatic scrollbar and wrapping options. The first one is (optionally) editable, the second is readonly. For details please visit this page:
http://www.cegui.org.uk/wiki/index.php/WidgetGalore
Good luck!
Check out my released snake game using Cegui!
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 6 guests