Page 1 of 1

Edit Box Question

Posted: Mon Jan 21, 2008 09:17
by m0ng00se
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

Posted: Mon Jan 21, 2008 09:58
by scriptkid
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!