One Rect For All specificaiton
brahma at hindu.org
Mon Jan 4 20:55:57 EST 2016
Seems better to let Livecode do the job… which means working in iPad size even though your main target is phones. Odd, but that would work for controls that are meant to stay top and bottom.
OTHO I don’t understand how it is that “tricky”… doesn’t the screen rect solve this for any device?
put the effective screenrect into tRect
set the bottom of group “tabBar” to item 4 of tRect
On January 4, 2016 at 3:12:46 PM, Colin Holgate (colinholgate at gmail.com<mailto:colinholgate at gmail.com>) wrote:
Which you choose is often dependent on whether you have tools that stick to the top and bottom, or the sides. If you do use code to make them snap into place, it can be tricky. You need to find the real width and height of the device itself, divide one into the other, and use that as a multiplier against your card size to know how far from the center the controls should be placed. If you’re only doing current iOS devices you could make assumptions about it being 16:9 or 4:3, but that might not always be the case, and it wouldn’t be correct for most Android devices.
More information about the Use-livecode