lock screen / unlock screen counter
Posted: Tue Jul 16, 2013 3:08 am
LiveCode keeps track of lock (+1) and unlock events (-1), and if the integer is positive, the screen is locked. Does it keep track of integers less than 0? If I am already in an unlocked state, and I unlock again and the lock back, am I still unlocked (integers less than 0) or is it locked? The answer to this question needs to go in the dictionary.
ex:
ex:
Code: Select all
command doIt
lock screen
answer "hello world!"
unlock screen
doThat
end doIt
command doThat
unlock screen
answer "goodbye world!"
lock screen
end doThat