Sign in Join
FPDoc Onlineexperiment

TWinControl.CreateBrush procedure

Member of TWinControlprotectedIn unit Controls

Creates the Brush, if not already created.

Declaration

pascal
procedure CreateBrush; virtual

Description

Creates and assigns a TBrush instance used in the Brush property. The brush Color is updated using the resolved value in the Color property. clDefault in Color causes the default brush color value from the widgetset to be used.

CreateBrush is called when the value for the Brush property is read, and the member has not yet been assigned.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.