Mobile: Convert from screen to card coords
Klaus major-k
klaus at major-k.de
Tue Oct 18 09:08:41 EDT 2022
Hi Brian,
> Am 18.10.2022 um 15:05 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>
> When you use “none” as the mode, then screen and card coordinates will be the same.
8-)
> When the app starts you should get a resizeStack that provides the opportunity to adjust the layout.
Forgot to mention that I will use "showall" as fullscreenmode.
> Brian Milby
> brian at milby7.com
>
>> On Oct 18, 2022, at 8:56 AM, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi Brian,
>>
>> I knew I forgot something...
>>
>>> Am 17.10.2022 um 19:53 schrieb Brian Milby via use-livecode <use-livecode at lists.runrev.com>:
>>>
>>> Looking at the image, I’m not sure you can do what you want and have it work. You can draw outside of the card rect, but you can’t interact with anything outside of the rect. In the image on the right, the nav bar is as low as it can go and receive touch interactions.
>>
>> OK, I definitively understand that!
>>
>> But iPhoneSafeArealnsets0 will only return values in SCREEN-coordinates
>> and I have no idea how to „convert" these to CARD coordinates.
>>
>> We need that to move the bottom/top controls up or down if neccessary,
>> know what I mean? Any hints very welcome!
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
More information about the use-livecode
mailing list