I know that inside any native control, things are drawn at native resolution.  
A good way to see this is a browser widget.  So I’m thinking that that is going 
to apply in the other direction too.  You will need to convert your card 
coordinates to native coordinates to place the control.

I might could play with the math, but it wouldn’t be until much later this 
evening.

If you are already adjusting the aspect ratio, then you probably have a 
resizeStack handler.  It may be easier to just go the next step to using native 
coordinates.

Brian Milby
br...@milby7.com

> On Nov 15, 2022, at 7:54 AM, Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Brian,
> 
>> Am 15.11.2022 um 13:32 schrieb Brian Milby via use-livecode 
>> <use-livecode@lists.runrev.com>:
>> 
>> What fullscreenmode are you using on that card?
> 
> I use "showall".
> However I resized the stack proportionally to the aspect ration of the device,
> so it "behaves" like fullscreenmode "exactfit".
> 
>> Brian Milby
>> br...@milby7.com
>> 
>>>> On Nov 15, 2022, at 4:55 AM, Klaus major-k via use-livecode 
>>>> <use-livecode@lists.runrev.com> wrote:
>>> 
>>> Hi all,
>>> 
>>> I do not won an iPhone, but some users told me that 
>>> scanning a barcode will show the previewarea way off
>>> from where I definde it.
>>> 
>>> Here part of my script:
>>> --------------------------------
>>> on mergAVMediaAccess pType, pGranted
>>> mergAVCamSet "microphone", empty
>>> mergAVCamCreate
>>> 
>>> ## See below...
>>> mergAVCamSet "rect",the rect of graphic "qr_ios"
>>> ...
>>> ----------------------------------
>>> See what happens here:
>>> <https://www.dropbox.com/s/6q1hmwl82ns7r1p/mergAVbarcodescan.png?dl=0>
>>> The light green rect behind the (off-set preview) is gr "qr_ios" and 
>>> nothing else in 
>>> any script that could cause this!
>>> 
>>> So does mergAV use GLOBAL coordinates?
>>> 
>>> Any insight very welcome, thank you!
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to