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

TCustomFrame.UpdateOpaque

Updates control style flags to reflect the transparency for the frame.

Declaration

Source position: forms.pp line 332

protected procedure TCustomFrame.UpdateOpaque;

Description

UpdateOpaque is a method used to update ControlStyle flags to reflect the transparency for the frame. When ParentBackground is True, the value csOpaque is excluded from the ControlStyle property to allow the frame to be drawn with transparency. When set to False, csOpaque is included in ControlStyle.

UpdateOpaque is called when the value for the ParentBackground has been changed, and when the CM_PARENTCOLORCHANGED control message is handled for the frame.

See also

TCustomFrame.ParentBackground

  

Indicates if the control uses the background from the parent.

TControl.ControlStyle

  

Contains style flags which control the features or behaviors enabled for the control.


Version 4.0 Generated 2025-05-03 Home