Page 1 of 1

Text Word Wrapping inside an EditBox?

Posted: Fri Nov 17, 2023 6:00 pm
by peters
This may sound like a stupid question, but how do you get word wrapping inside a standard editbox to work?
I am use to C# and an editbox when used has word-wrapping as a default.
I am looking all over with keyword searches like "Word wrapping in EditBox", and I keep getting hits on how to word-wrap around objects like pictures in a webpage - lol
So I drop an editbox on and although I have it's height set to accommodate 3 lines of input and bound to a varchar(254) field, it does not word-wrap and just allows one straight line of input scrolling across the one line. I cannot seem to find any property to enable or disable word wrapping. What am I missing?

Many thanks in advance!

Pete,

Re: Text Word Wrapping inside an EditBox?

Posted: Fri Nov 17, 2023 6:24 pm
by Pablo
A standard HTML editbox is for single line input only.
For multi-line input you should use a textarea.

Note that this is not specific to WWB, It's standard HTML functionality.
C# does not work the same as HTML.

Re: Text Word Wrapping inside an EditBox?

Posted: Fri Nov 17, 2023 8:00 pm
by alan_sh
Put it into a flex grid. Seems to work for me.

Re: Text Word Wrapping inside an EditBox?

Posted: Fri Nov 17, 2023 8:36 pm
by peters
Thank you both for your quick responses. I was trying to use a control that does not support word-wrapping within it. I told you it was a stupid question, but with my background in C# and C++ for me an Editbox comes with word-wrapping built in, that's why they call it and EditBox and not a TextBox - lol So here I need to use a TextArea or I can see what the flexgrid does as I am using both flexcontainers and flexgrids already in my projects.

Thanks again!