Vertical Fields? Can I Change Text's Angle?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Vertical Fields? Can I Change Text's Angle?

Post by Gage » Wed Aug 20, 2014 10:30 pm

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.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

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

Post by Simon » Wed Aug 20, 2014 11:07 pm

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

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

Post by Gage » Wed Aug 20, 2014 11:08 pm

Thanks, Simon!

Have a great day.

Kind regards,
Phil E.

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

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

Post by paul_gr » Thu Aug 21, 2014 12:17 am

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

Post Reply