Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomPanel.UpdateParentColorChange

Updates the control to reflect changes to the ParentColor property.

Declaration

Source position: extctrls.pp line 1138

protected procedure TCustomPanel.UpdateParentColorChange;

Description

UpdateParentColorChange updates the control to use the opacity needed for the values in the ParentColor or ParentBackground properties.

If either ParentColor or ParentBackground is True, the value csOpaque is excluded from the ControlStyle property. If both properties are False, csOpaque is included in the ControlStyle property.

UpdateParentColorChange is called from the Loaded method when the component has finished loading using the LCL component streaming mechanism. It is called from the CMParentColorChanged method when the change message is handled for the control. It is also called when a new value is assigned to the ParentColor or ParentBackground properties.

See also

TCustomPanel.ParentColor

  

Indicates if the control is drawn using the color in the parent control.

TCustomPanel.ParentBackground

  

Indicates if the background from the parent control is used to draw the background for the control.

TCustomPanel.Loaded

  

Performs actions needed when the component has finished loading in the LCL streaming mechanism.

TCustomPanel.CMParentColorChanged

  

Handles a CM_PARENTCOLORCHANGED message for the control.



CT Web help

CodeTyphon Studio