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

TScrollBox.UpdateParentColorChange

Updates ControlStyle flags to set the opacity for the control.

Declaration

Source position: forms.pp line 227

protected procedure TScrollBox.UpdateParentColorChange;

Description

UpdateParentColorChange is method used to update the ControlStlye property when the value in ParentColor or ParentBackground has been changed.

If either ParentColor or ParentBackground is set to True, the control needs to be transparent so that the parent background color is seen as the control background color. This is achieved by excluding the value csOpaque from the ControlStyle property.

If both ParentColor and ParentBackground are set to False, csOpaque is included in the ControlStyle property.

UpdateParentColorChange is also called when the control is Loaded during LCL streaming or when the CM_PARENTCOLORCHANGED message is handled for the control.


Version 3.2 Generated 2024-02-25 Home