lock screen | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Sets the lockScreen property to true, temporarily preventing the screen from being updated. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Related | Property: allowFieldRedraw, alwaysBuffer, lockScreen Glossary: handler Command: lock colorMap, lock cursor, lock menus, lock messages, unlock screen, visual effect | ||||||
Description | Use the lock screen command to rearrange items on the screen or to change locations without the user seeing the transition. Use the (optional) Use the (optional) rectString parameter of the lock screen command if you want to subsequently unlock the screen using a visual effect in a particular area of the screen. A handler may need to open a stack and then close it before the handler is completed, or to move or change the appearance of a number of objects on the screen. If the screen is locked before these changes occur, the user does not see the changes happen on screen. Locking the screen can prevent user confusion or unsightly screen flashing. It also increases the speed of the handler, since LiveCode does not have to redraw all the intermediate states of the screen. The lock screen command sets the lockScreen property to true. When all pending handlers are finished executing, the lockScreen property is set back to false and the user sees the current state of stack windows on the screen. Note: When using script debug mode, the screen cannot be locked and the lock screen command has no effect. | ||||||
Tags | ui |