Sign in Join
FPDoc Onlineexperiment

TCanvas.CreateRegion procedure

Member of TCanvasprotectedIn unit Graphics

Ensures that the handle for the canvas Region is valid.

Declaration

pascal
procedure CreateRegion; virtual

Description

CreateRegion is a procedure used to ensure that the handle for the rectangular Region in the canvas is valid.

CreateRegion calls SelectObject to the get the handle for the Region, and saves a local copy for access in the class instance. Canvas state flags are updated to indicates that the handle for the Region is valid.

CreateRegion is declared as a virtual method, and may be overridden in descendant classes.

CreateRegion is not used in the current LCL implementation.

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