Sign in Join
FPDoc Onlineexperiment

LockScreenUpdate procedure

In unit video

Prevent further screen updates.

Declaration

pascal
procedure LockScreenUpdate

Description

LockScreenUpdate increments the screen update lock count with one. As long as the screen update lock count is not zero, UpdateScreen will not actually update the screen.

This function can be used to optimize screen updating: If a lot of writing on the screen needs to be done (by possibly unknown functions), calling LockScreenUpdate before the drawing, and UnlockScreenUpdate after the drawing, followed by a UpdateScreen call, all writing will be shown on screen at once.

For an example, see GetLockScreenCount.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.