Page 1 of 1

Vertical Fields? Can I Change Text's Angle?

Posted: Wed Aug 20, 2014 10:30 pm
by Gage
Hi,

Just wondering if it's possible in the LiveCode IDE to rotate a field so the text displays vertically, such as on the vertical axis of a chart.

Thanks!
Phil E.

Re: Vertical Fields? Can I Change Text's Angle?

Posted: Wed Aug 20, 2014 11:07 pm
by Simon
Hi Phil,
Nope, vertical text is not supported.
Scott Rossi has a solution;
http://www.tactilemedia.com/
Dig around there and find his tutorials.

Simon

Re: Vertical Fields? Can I Change Text's Angle?

Posted: Wed Aug 20, 2014 11:08 pm
by Gage
Thanks, Simon!

Have a great day.

Kind regards,
Phil E.

Re: Vertical Fields? Can I Change Text's Angle?

Posted: Thu Aug 21, 2014 12:17 am
by paul_gr
You can use a narrow vertical field if you want the characters
to remain upright and readable.

Try this...
drop a field onto a card and call it "fDisplay"
Pull it into the shape you want.
drop a button onto the card. put the code below into the button.

---------------------------------------------------
on mouseUp
put empty into fld "fDisplay"
put "Livecode is cool" into tempHold

repeat with i = 1 to the number of chars of tempHold
put char i of tempHold & return after fld "fDisplay"
wait for 10 milliseconds -- not needed, just for effect
end repeat

end mouseUp
---------------------------------------------------

You can adjust font type, size, textHeight and margins to get things how you want.

Paul