One Rect For All specificaiton
prothero at earthednet.org
Tue Jan 5 05:51:42 CET 2016
I wonder if a set of screen templates for a range of ui configurations might not be a product folks would be willing to pay for. It sounds like it might save some folks a lot of time.
> On Jan 4, 2016, at 6:33 PM, Colin Holgate <colinholgate at gmail.com> wrote:
> Don’t know, you should test it. According to the help it returns the screenrect after removing things like the keyboard overlay. But that may still be in virtual pixels, based on the card rect.
>> On Jan 4, 2016, at 8:55 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
>> 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?
>> on preOpenCard
>> put the effective screenrect into tRect
>> set the bottom of group “tabBar” to item 4 of tRect
>> end preOpenCard
>> 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.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode