Rotate Field..?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Rotate Field..?

Post by doobox » Wed Mar 07, 2012 8:42 am

Hi there,

I find a need for rotating a text field, that contains the current time, to 90 degrees relative to its normal orientation.
It looks on the face of it like this is not possible. Does anyone know a workaround for doing this..?

I considered taking a snapshot of the field.. converting to an image.. then rotating the image through 90.
This seems a bit overkill once a second :-(
Kind Regards
Gary

https://www.doobox.co.uk

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Rotate Field..?

Post by Jellicle » Wed Mar 07, 2012 9:29 am

Did a search and everyone who has done this has done it with images. What exactly are you needing this for? There may be a better way than taking snapshots...

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: Rotate Field..?

Post by doobox » Wed Mar 07, 2012 10:27 am

Hi there,

I have a digital clock read out like : " 21:33:45"
Its quite difficult... na.. impossible, for me to fit this into my ui now, in the normal orientation.
I designed the whole ui based on this being rotated 90.
I had thought this was not a problem from memory, and now i am at that stage i am a bit snookered.

Currently i have the clock showing in a not so acceptable way :

21
:
33
:
45

It is a completely graphical ui, you can see a shot of what i am doing here : http://www.garysimpson.co.uk/
Kind Regards
Gary

https://www.doobox.co.uk

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Rotate Field..?

Post by monte » Wed Mar 07, 2012 11:02 am

Hi Gary

If you had images of 0-9 and a background image with the colons all rotated you could use buttons with icons.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: Rotate Field..?

Post by doobox » Wed Mar 07, 2012 11:32 am

Hi there,

Yes i think i must go down that road, as i cant change the aspect of the paycard.
It is a faithful re-production of our local parking card in the Channel Islands.
Thank you for helping me see my only other option. Cheers.
Kind Regards
Gary

https://www.doobox.co.uk

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Rotate Field..?

Post by Jellicle » Wed Mar 07, 2012 11:48 am

I was thinking along the same lines as Monte but now I'm intrigued: your app is a timer? How are you alerting the user once they quit your app?

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: Rotate Field..?

Post by doobox » Wed Mar 07, 2012 12:21 pm

Hi there,

There are local notifications coming in the next build of livecode.
They lend themselves perfectly to this kind of app :-)
Kind Regards
Gary

https://www.doobox.co.uk

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Rotate Field..?

Post by Jellicle » Wed Mar 07, 2012 1:18 pm

So there are :)

g
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply