Back to Devexpress

TdxAdornerCustomDrawEvent Type

vcl-dxuiadorners-4fe095ab.md

latest2.1 KB
Original Source

TdxAdornerCustomDrawEvent Type

The UI adorner custom draw event type.

Declaration

delphi
TdxAdornerCustomDrawEvent = procedure(AManager: TdxUIAdornerManager; AAdorner: TdxCustomAdorner; ACanvas: TdxGPCanvas; AViewInfo: TdxCustomAdornerViewInfo; var ADone: Boolean) of object;

Parameters

NameType
AManagerTdxUIAdornerManager
AAdornerTdxCustomAdorner
ACanvasTdxGPCanvas
AViewInfoTdxCustomAdornerViewInfo
ADoneBoolean

Remarks

Use the AManager and AAdorner parameters to access the UI adorner manager and the adorner that raised a TdxAdornerCustomDrawEvent event. To access the adorner’s type-specific members, you need to cast AAdorner to its actual type (TdxBadge, for instance).

The ACanvas and AViewInfo parameters allow you to access the drawing surface and the adorner’s ViewInfo information (a TdxBadgeViewInfo or TdxGuideViewInfo class instance referenced as a TdxCustomAdornerViewInfo object) used to paint the AAdorner adorner.

Pass True as the ADone parameter to disable the default adorner draw routines.

The following events reference the TdxAdornerNotifyEvent type:

See Also

dxUIAdorners Unit