Sign in Join
FPDoc Onlineexperiment

TScreen.BeginTempCursor procedure

Member of TScreenpublicIn unit Forms

Sets the Cursor property to a temporary shape. Use EndTempCursor to release it.

Declaration

pascal
procedure BeginTempCursor(const aCursor: TCursor)

Arguments

aCursor

Identifies the temporary mouse cursor shape to apply to the screen.

Description

BeginTempCursor is a method used to change the mouse cursor shape to the temporary cursor in the ACursor argument. It adds the value in ACursor to an internal list of temporary cursors. The cursor shape is removed when the EndTempCursor method is called.

BeginTempCursor calls SetCursor in the widgetset class to change the mouse cursor shape to the value in Cursors stored at the index in ACursor.

Use EndTempCursor to remove a given cursor shape, and restore the mouse cursor to a previous value.

See also

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