TCustomShape.UpdateMask procedure
Updates the internal Monochrome bitmap used as a mask to detect mouse click events on the shaped control.
Declaration
procedure UpdateMaskDescription
UpdateMask ensures that the internal TBitmap instance used in the
class is allocated and configured (when not already assigned). It is configured
as a Monochrome image where pixels outside of the area for the Shape use the
color clWhite. Pixels which are inside of (or on an edge) for the Shape use the
color clBlack.
UpdateMask calls the DrawToCanvas method to draw the image for the shaped control on the canvas for the bitmap.
UpdateMask is called from the PtInShape method prior to checking where the mouse pointer was located when a click event occurred.
Added in LCL version 4.0.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
