Skip to main content

TcxCustomGroupBox.OnCustomDrawContentBackground Event

Allows you to custom paint a group box’s background.

Declaration

property OnCustomDrawContentBackground: TcxGroupBoxCustomDrawElementEvent read; write;

Remarks

The OnCustomDrawContentBackground event fires when the group box’s background is about to be drawn.

Sender specifies the group box whose background is to be drawn.

ACanvas specifies the drawing surface.

ABounds specifies the bounding rectangle.

APainter specifies the painter that draws the group box.

ADone specifies whether the default rendering is required. Set ADone to True, to prevent default code execution.

Important

the OnCustomDrawCaption, OnCustomDrawContentBackground and OnMeasureCaptionHeight events were designed to be used with skins. Since skinning was developed for platforms starting from Delphi 7 and Developer Studio 2006, these events can only be used in these environments.

See Also