[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TCustomPanel.UpdateParentColorChange

Updates the control to reflect changes to the ParentColor property.

Declaration

Source position: extctrls.pp line 1092

protected procedure TCustomPanel.UpdateParentColorChange;

Description

UpdateParentColorChange updates the control to reflect changes to the ParentColor property.

When ParentColor is True, the parent color is used, so the value csOpaque is excluded from the ControlStyle property. Otherwise, Parent color is not used, and the value 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 also called from the CMParentColorChanged method when the change message is handled for the control.