Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: anarchist on July 13, 2012, 04:55:41 PM

Title: Multiline text box
Post by: anarchist on July 13, 2012, 04:55:41 PM
Hello everyone,

This surely must have been discussed before but I am unable to find a topic in the forum  :-[

I will have a notebook in my game which among other things will have a place for the user to write whatever they want and keep the text saved for the duration of the game. Obviously I will need multiline input as a single line text box is out of the question.

Are there any properties I need to set to the text box so that it becomes multiline or do I need a complex workaround?

Thank you
Title: Re: Multiline text box
Post by: anarchist on July 30, 2012, 04:34:07 PM
Hi all,

I am really sorry to insist, but I would really appreciate it if someone knows at least whether this is doable or not, so we can look for alternatives.

Thank you
Title: Re: Multiline text box
Post by: Jerrot on July 31, 2012, 10:49:03 AM
Hi anarchist,

I'm afraid, this is not possible out-of-the-box. Although the Editor object can be adjusted in width and height, it doesn't support multi-line input.

A possible workaround might be to use the Keyboard object to catch the input and fill a static control with the text (these controls *do* support word wrapping). You would have to "simulate" a blinking cursor on your own though, if you need that - which might be a little more tricky.

Cheers,
Jerrot
Title: Re: Multiline text box
Post by: anarchist on July 31, 2012, 09:59:38 PM
Thanks Jerrot. I guess we will remove this feature then, no worries.
Title: Re: Multiline text box
Post by: metamorphium on August 06, 2012, 12:01:12 AM
Text box is a nightmare. They don't support utf8 (or haven't some time ago) which means tons of unsolvable bugs with various windows language mutations. Steer cleer from them if you don't want to force ASCII characters. :)
Title: Re: Multiline text box
Post by: anarchist on August 06, 2012, 05:41:00 PM
 :) thanks for the tip