Sign in Join
FPDoc Onlineexperiment

TControl.SetColor procedure

Member of TControlprotectedIn unit Controls

Sets the value for the Color property.

Declaration

pascal
procedure SetColor(Value: TColor); virtual

Description

SetColor is a method used to set the value for the Color property to the specified TColor value. Assigning a value to Color causes the ParentColor property to be set to False.

SetColor calls Perform to send a CM_COLORCHANGED control message to the widgetset class. Invalidate is called to force the control to be redrawn.

See also

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