lock colorMap

Sets the lockColorMap property to true, preventing the screen from being redraw when the color table is changed.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

lock colorMap

# Examples

lock colorMap

if the platform is "MacOS" then lock colorMap

# Description

Use the lock colorMap command to prevent screen flashing when images and movies appear on a screen set to 256 or fewer colors.

When all pending handlers are finished executing, the lockColorMap property is set back to false, undo the lock colorMap command action.

# Tags

ui,

# See

- **property:** lockColorMap - **command:** unlock colorMap, lock cursor, lock screen - **object:** image - **glossary:** property, redraw, undo, command, color table