Mobile: Convert from screen to card coords

Klaus major-k klaus at major-k.de
Tue Oct 18 09:39:14 EDT 2022


Hi Mark,

> Am 18.10.2022 um 15:12 schrieb Mark Smith <marksmithhfx at gmail.com>:
> 
> Hi Klaus, I don’t use fullscreen mode anymore. It’s much better looking if you position all of the controls yourself. Here’s an example that should get you started…
> 
> command layoutTheControls
> ...
>   set the left of group id tID to 12
> 
> etc, until all the objects on the page are positioned. Then test on various simulated iPhones to see how it is working
> and adjust as necessary.

yes, sure, but i'd like to avoid this and currently only need an answer to my question.

> On Oct 18, 2022, at 1:55 PM, 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