rotate field

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

rotate field

Post by adventuresofgreg » Thu Nov 03, 2011 6:00 pm

Is there any way to ROTATE a field so that the text in the field runs VERTICALLY up the page?

Klaus
Posts: 14212
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: rotate field

Post by Klaus » Thu Nov 03, 2011 6:20 pm

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 » Thu Nov 03, 2011 6:32 pm

i bet that wont work on iOS ?

Klaus
Posts: 14212
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: rotate field

Post by Klaus » Thu Nov 03, 2011 6:37 pm

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 » Thu Nov 03, 2011 6:47 pm

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: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: rotate field

Post by bn » Thu Nov 03, 2011 10:17 pm

Hi,

snapshot works on iOS.

Kind regards

Bernd

Post Reply