Livecode Wiki
Advertisement

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

Built-in Message handler[]

Syntax:

lock colorMap

Examples:

lock colorMap
if the platform is "MacOS" then lock colorMap

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

The lock colorMap command sets the lockColorMap property to true.

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

See also: lock screen (command),image (object),lockColorMap (property),

Advertisement