Edit Box Question

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

m0ng00se
Just popping in
Just popping in
Posts: 4
Joined: Thu Jan 17, 2008 23:35
Location: New Zealand
Contact:

Edit Box Question

Postby m0ng00se » Mon Jan 21, 2008 09:17

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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Jan 21, 2008 09:58

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!
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