Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGroupBox.OnCustomDrawContentBackground Event

In This Article

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

#Declaration

Delphi
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