Skip to main content

TcxCustomGroupBox.OnCustomDrawCaption Event

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

Declaration

property OnCustomDrawCaption: TcxGroupBoxCustomDrawElementEvent read; write;

Remarks

The OnCustomDrawCaption event fires when the group box’s header is about to be drawn.

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

ACanvas specifies the drawing surface.

ABounds specifies the header’s 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