Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.SetColor

Sets the value for the Color property.

Declaration

Source position: controls.pp line 1451

protected procedure TControl.SetColor(

  Value: TGraphicsColor

); virtual;

Arguments

Value

  

New value for the Color property.

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

TControl.Color

  

The background color of the control.



CT Web help

CodeTyphon Studio