screen dimensions... cm

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
lordmax
Posts: 15
Joined: Wed Apr 24, 2013 1:22 pm

screen dimensions... cm

Post by lordmax » Tue May 07, 2013 12:58 pm

Hi to all

Plese excuse me if this is a stupid topic

I'm new of livecode and I need to work on some template for mobile.

Now there's a real caos in dimensions.
What I hope to do is to create a new stack and then set its dimension (width and height) in cm or mm and not in pixel because if I work with a screen of 960x640 px I cant have a good impression of the final impression.
But I haven't found a way to set mm or cm for dimensions
There's a way to do that?

I hope to be clear enough

P.S. I know that dimension depends on dpi and not pixel


Thanks

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

Re: screen dimensions... cm

Post by Klaus » Tue May 07, 2013 1:41 pm

Hi Mylord,
lordmax wrote:...But I haven't found a way to set mm or cm for dimensions
There's a way to do that?
No, since everything on the monitor and in Livecode is measured in pixel, this is not possible!

You would always need to convert DPI/cm/mm into pixels to use it in Livecode 8)


Best

Klaus

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: screen dimensions... cm

Post by andrewferguson » Tue May 07, 2013 3:52 pm

Hi,
I may be wrong, but from the dimensions you have given it looks like you are making a project for mobile devices.

The best way to test mobile apps is to test them on a real device, and LiveCode has facilities for this.
You should find instructions in the iOS or Android Release notes, which are under the Help menu.

If you are developing for iOS devices you need a recent intel mac, for android you need mac or windows (I don't know if Linux is officially supported yet!)

Andrew

lordmax
Posts: 15
Joined: Wed Apr 24, 2013 1:22 pm

Re: screen dimensions... cm

Post by lordmax » Wed May 08, 2013 8:45 am

Klaus wrote:Hi Mylord,
lordmax wrote:...But I haven't found a way to set mm or cm for dimensions
There's a way to do that?
No, since everything on the monitor and in Livecode is measured in pixel, this is not possible!
You would always need to convert DPI/cm/mm into pixels to use it in Livecode 8)

Best
Klaus
Thanks

It's a sin 'cause everithings in UI and UX is evaluated in mm not in pixel.
^_^

lordmax
Posts: 15
Joined: Wed Apr 24, 2013 1:22 pm

Re: screen dimensions... cm

Post by lordmax » Wed May 08, 2013 8:48 am

andrewferguson wrote:Hi,
I may be wrong, but from the dimensions you have given it looks like you are making a project for mobile devices.
Yes but not only

I have to make an app that works on win, linux, maybe mac, iPhone and Android (at least some models) and I hope to not have to reworks dimensions for every sistem.
andrewferguson wrote: The best way to test mobile apps is to test them on a real device, and LiveCode has facilities for this.
You should find instructions in the iOS or Android Release notes, which are under the Help menu.

If you are developing for iOS devices you need a recent intel mac, for android you need mac or windows (I don't know if Linux is officially supported yet!)

Andrew
Thanks.

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: screen dimensions... cm

Post by andrewferguson » Wed May 08, 2013 1:13 pm

Hi,
To test the app on other desktop systems, why not try VirtualBox? https://www.virtualbox.org/ It can test many desktop operating systems, the main exception being the Mac OS X, and is really useful to test apps to make sure they run on all platforms.

And when you are making your app, try to make it not screen dimension specific, so you can alter the pixel dimensions and the app will still work.

Andrew

Post Reply