Screen Lock

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
blairetabay
Posts: 34
Joined: Mon Feb 24, 2014 10:12 am

Screen Lock

Post by blairetabay » Sat Mar 08, 2014 3:36 pm

Hi to all,

I have two forms the main and the sub form. i use lock screen. In my mind that only the form that is active is working but its not.

here is my code

Code: Select all

set the lockScreen to true

Klaus
Posts: 13858
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Screen Lock

Post by Klaus » Sat Mar 08, 2014 4:03 pm

Hi Blaire,

I have no idea what you are talking about!?
Main form/sub form? Active form?
Maybe you mean stacks?

Sorry, don't get it.


Best

Klaus

blairetabay
Posts: 34
Joined: Mon Feb 24, 2014 10:12 am

Re: Screen Lock

Post by blairetabay » Sat Mar 08, 2014 4:35 pm

hi Klaus,


i mean stack. main stack and the sub stack.

Klaus
Posts: 13858
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Screen Lock

Post by Klaus » Sat Mar 08, 2014 4:55 pm

Ah, OK, that one solved!
But what about this one:
In my mind that only the form that is active is working but its not.
Still no idea what that could mean :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7257
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Screen Lock

Post by jacque » Sat Mar 08, 2014 9:53 pm

I think it means he wants to lock the screen to show and enable only a single form at a time. Is that's true then:

That's not what lockscreen does, blairetabay. Lockscreen stops the screen from updating but it does not hide or show objects. The lock only lasts until the current handler is finished and then the screen redraws automatically.

Instead, hide one form and show the other one. If each form is in a stack, you can:

set the visible of stack "form 1" to false -- if it is the main stack
go stack "form 2"
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”