[REBOL] Re: Problem of wraping in layout
From: brett:codeconscious at: 13-Jan-2002 10:13
Hi Philippe,
> I designed an application in rebol but i got the problem
> of having text that is wraped when its approched the border of the layout.
I'm not sure if this will help but you can display text
with line-breaks using "as-is". This shows the difference:
example-text: {Here is some text.
It is made up of three lines.
This is the last line.}
view layout [
text as-is example-text
text example-text
]
Making this example, I've learnt something myself - AS-IS stops the TRIM
function from being applied to your string. That is, if you do not use as-is
your string will be modified. Try this after you have run the example above:
probe example-text
This demonstrates the issue another way. Here I swapped the order of when
as-is used:
example-text: {Here is some text.
It is made up of three lines.
This is the last line.}
view layout [
text example-text
text as-is example-text
]
Philippe, make a small example of your problem if this post has not helped.
Small focussed code snippets are a good way to discuss an issue.
Cheers,
Brett.