Can't get fullscreenmode to work

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bergsy
Posts: 45
Joined: Mon Oct 28, 2013 10:51 pm

Can't get fullscreenmode to work

Post by bergsy » Thu Mar 12, 2015 5:28 am

Hi, Though I have been using Livecode for about 18 months now, I feel this question is a newbie question so I have posted it here.

I am trying to use the resizing capability that has been available from 6.5. I have tried to do it with 6.6.2 and 7.0.3.

I have put the code below in a button:

on mouseUp
set the fullscreenmode of this stack to "exactFit"
end mouseUp

I have put the following code in the stack:
on preOpenStack

set the fullscreenmode of this stack to "exactFit"

end preOpenStack

When I resize the stack, the objects don't resize. I have attached the livecode file (zipped).

I was thinking if I make it really simple then it should work, but alas it does not.

Any help appreciated

Cheers

bergsy
Attachments
Test resize.zip
Zip of livecode file
(631 Bytes) Downloaded 193 times

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: Can't get fullscreenmode to work

Post by paul_gr » Thu Mar 12, 2015 8:29 am

On mobile, fullscreen is automatic.
On desktop, you will have to set the fullscreen to true first.

try this

on mouseUp
set the fullscreen of stack to true
set the fullscreenmode of this stack to "exactFit"
end mouseUp

Paul

bergsy
Posts: 45
Joined: Mon Oct 28, 2013 10:51 pm

Re: Can't get fullscreenmode to work

Post by bergsy » Fri Mar 13, 2015 7:25 am

Brilliant Paul - works like a bought one

Cheers

Greg

Post Reply