Sign in Join
FPDoc Onlineexperiment

TScreen.EndTempCursor procedure

Member of TScreenpublicIn unit Forms

Releases a temporary mouse cursor set with BeginTempCursor.

Declaration

pascal
procedure EndTempCursor(const aCursor: TCursor)

Arguments

aCursor

Identifies the cursor shape released in the method.

Description

EndTempCursor is a method used to release the temporary cursor shape in ACursor. It removes the value from the internal list of temporary cursors updated in the BeginTempCursor method. Only the cursor shape in ACursor is removed from the list; other values are left intact.

EndTempCursor calls SetCursor in the widgetset class to apply the cursor shape in RealCursor.

An Exception is raised with the message 'Unbalanced BeginTempCursor/EndTempCursor calls for cursor' if ACursor is not found in the list of temporary cursors.

Use BeginTempCursor to display and store a temporary mouse cursor shape.

Errors

Raises an Exception with the message 'Unbalanced BeginTempCursor/EndTempCursor calls for cursor' if ACursor is not found in the list of temporary cursors.

See also

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