ScreenUnlock
 
Unlocks work page's framebuffer

Syntax

Declare Sub ScreenUnlock ( ByVal startline As Integer = -1, ByVal endline As Integer = -1 )

Usage

ScreenUnlock [ start_line ] [, end_line ]

Parameters

startline
optional argument specifying first screen line to be updated. If omitted, top screen line is assumed.
endline
optional argument specifying last screen line to be updated. If omitted, bottom screen line is assumed.

Description

ScreenUnlock unlocks the current work page assuming it was previously locked by calling ScreenLock. ScreenUnlock must not be called without a previous call to ScreenLock. This function lets the system restart updating the screen regularly, and when called produces the immediate update of the screen region marked by the given start and end lines.

After ScreenUnlock is called, all graphics statements may be safely used. Accessing the work page framebuffer directly via ScreenPtr may only used after locking the screen again with ScreenLock.

Example

See ScreenPtr example.

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Screenunlock.

Differences from QB

  • New to FreeBASIC

See also