Updates the control to reflect changes to the ParentColor property.
Source position: extctrls.pp line 1138
protected procedure TCustomPanel.UpdateParentColorChange; |
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.
|
Indicates if the control is drawn using the color in the parent control. |
|
|
Indicates if the background from the parent control is used to draw the background for the control. |
|
|
Performs actions needed when the component has finished loading in the LCL streaming mechanism. |
|
|
Handles a CM_PARENTCOLORCHANGED message for the control. |
CT Web help |
CodeTyphon Studio |