news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

UL_LockStuff

Revision 1
Revised on 19/03/95 19:16

Description

Lock the screen, and set the lockRecent and the lockMessages to true.

This routine is called when you want to go to one or more other cards "quietly" - ie without updating the screen, the stack of recent cards, and without sending messages like opencard, closecard, etc.

To reverse the effects of UL_LockStuff, call UL_UnlockStuff.

These two routines remember how many times they have been called, so they can be nested. This means that each call to UL_LockStuff must be balanced by a call to UL_UnlockStuff.


Code

on UL_LockStuff
  global gUL_LockCount
  
  set the lockRecent to true
  set the lockMessages to true
  lock screen
  add 1 to gUL_LockCount
end UL_LockStuff