Author Topic: Can I stop text from wrapping in shape script?  (Read 2842 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Can I stop text from wrapping in shape script?
« on: November 28, 2014, 09:56:05 am »
Alrightkie

I've got a shape script which has the following label script:

shape label
{
....
SetOrigin("N",0,-30);
Print("#Name#\n<<#Tag:Type of Interval#>>");
...
}

This script is intended to place the name and interval type above the element with each occupying a single line ONLY.

Unfortunately, it does NOT do this.
It creates a text area that is generally too narrow for the text and then WRAPS the text across three or more lines!

The result is that the text spews all over the element, which is really unsightly.

So, after that rant, the question is: Is there some way to PREVENT text wrapping so that the name and interval type are each printed on a single line?

Cheers

Jays  :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Can I stop text from wrapping in shape script?
« Reply #1 on: November 28, 2014, 10:16:35 pm »
So why did you put the '\n' in your print?

q.