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.
Vertical Text
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Vertical Text
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
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));
}
}