rotate field

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

rotate field

Post by adventuresofgreg »

Is there any way to ROTATE a field so that the text in the field runs VERTICALLY up the page?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: rotate field

Post by Klaus »

Hi Greg,

yes, but only the "hard" way: Import snapshot from the field and rotate and display the resulting image.
Of course this is not editable text 8)


Best

Klaus
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: rotate field

Post by adventuresofgreg »

i bet that wont work on iOS ?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: rotate field

Post by Klaus »

I think so.
Searching the release notes for "import" or "snapshot" = NADA.
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: rotate field

Post by adventuresofgreg »

wait... it must work because chartsengine uses something like that for the X axis (rotates text), and I know for a fact that Chartsengine does work on iOS.

However, since it is just numbers, I found a sort of hack to do it. I imported 10 .png files - each number from 0 to 9. My script takes the text and replaced each digit with the corresponding .png file. Maybe that's what Chartsengine does??
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: rotate field

Post by bn »

Hi,

snapshot works on iOS.

Kind regards

Bernd
Post Reply