Vertical Text

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
mcmullan
Posts:16
Joined: Mon Jan 31, 2011 10:18 am

Vertical Text

Post by mcmullan »

How can I create a text field on a panel that displays the text vertically...e.g.

M
y
T
E
X
T

instead of the normal...

MyText

I now that you can rotate the text field but that is not what is needed.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Vertical Text

Post by kilianvp »

You can't rotate a Textfield!

If you don't use it as Input you can use a "TEXT_EDIT" (multiline Textfield)
and append every char as new line

Code: Select all

main(mapping event)
{
 shape target = getShape("TEXT_EDIT3");
 formatString(target, "Hello World");
}

void formatString(shape target, string input)
{
  int temp;
  for (int i = 0; i < strlen(input); i++)
  {
    temp = i;
   target.append(strwalk(input, temp));
  }
}

2 posts • Page 1 of 1