Page 1 of 1

Full Screen Sizes [SOLVED]

Posted: Thu Jan 29, 2015 12:17 pm
by morrell
I'm wanting to have my app scale as best it can on mobiles and tablets and I found this information:-

LiveCode 6.5 included a fullscreenMode property. This will scale an app to fit any screen size. You simply create your app at whatever size suits you as a developer and then add the following to your preOpenStack handler:
on preOpenStack
set the fullscreenMode to "exactFit"
end preOpenStack


Does this only work on 6.5 and not Community Edition 7.0.1 as no scaling takes place when I'm using Emulator mode?

Regards,

Ruth

Re: Full Screen Sizes

Posted: Thu Jan 29, 2015 1:38 pm
by SparkOut
Hi Ruth,
Full screen mode certainly should work.
Have you got different sized emulator avd's you are trying out? Probably you have only the one and the resize has already happened and won't change any more unless you change the screen aspect?
This thread may be worth a read: http://forums.livecode.com/viewtopic.ph ... 1&p=116442
Please let us know if there is any more specific information or questions you have.

Re: Full Screen Sizes

Posted: Thu Jan 29, 2015 5:02 pm
by morrell
Thank you SparkOut.

As you can see from my adv, there is no scaling using the on preOpenStack lines which are above the other code lines in the Header of my single stack.
However, the line 2 set the fullscreenMode to "exactFit" does give a 'Stack Header Chunk can't find object'.

Regards,

Ruth

Re: Full Screen Sizes

Posted: Fri Jan 30, 2015 3:08 am
by morrell
Well I have found an example on LC:
http://lessons.runrev.com/m/15262/l/156 ... ll-devices

and I needed on my second line set the fullscreenMode of me to "mychoice"
Regards,

Ruth