Page 1 of 1
line without space problem
Posted: Thu Apr 29, 2010 9:17 pm
by jmburnod
Hi All,
I have a scrolling fld with a vertical scroll
focusable, autohilite = true
others properties = false
If i type a line without space, the text dont go to the next "visible" line.
I always have a line which moves towards the left
Is there a way to avoid it ?
Jean-Marc
Re: line without space problem
Posted: Thu Apr 29, 2010 11:05 pm
by bn
Jean-Marc,
I am afraid this is the way it is. Rev does not know how to wrap a line if there is no space in it. You might consider this a bug.
You probably could insert a space or a return if the formattedwidth is larger then the width of the field + margins, I assume.
regards
Bernd
Re: line without space problem
Posted: Fri Apr 30, 2010 1:24 am
by Curry
Yes, this would be an excellent, ideal time to make note of this issue and hear voices in support, in case it can be fixed soon, because having the unspaced wrap behavior would be really useful sometimes. I've mentioned it in one venue, but the more the better, please everyone speak up now if this is important to you! I haven't checked to see if it's in the bug/feature request database.
Re: line without space problem
Posted: Fri Apr 30, 2010 3:15 pm
by dunbarx
Interestingly, HC has no problem handling text in what we might consider the "correct" way.
It does not matter that the style of the field is "scrolling". Wrap without spaces is not supported in Rev at all.
Re: line without space problem
Posted: Fri Apr 30, 2010 7:40 pm
by jmburnod
Hi All,
Thank for your opinion
I just wanted to verify that I did not forget anything, but i can live with that.
Best
Jean-Marc
Re: line without space problem
Posted: Fri Apr 30, 2010 9:15 pm
by bn
@ Dunbarx
Craig,
here is an example that uses the formattedWidth (not the formattedText) of the text of a line to insert a return if the text runs over the right edge of the field without breaking because there are no spaces in the line.
It might have to be a little tweaked for the width of the field and it is an ugly workaround I would not suggest to use generally. But in defined situations it can be helpful.
This is just a rough sketch but seems to work. No guaranties though.
It is attached as a stack below.
regards
Bernd
Re: line without space problem
Posted: Fri Apr 30, 2010 10:57 pm
by dunbarx
Bernd.
Nice.
You have to love Revolution.
Craig