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

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

Name Type
AManager TdxUIAdornerManager
AAdorner TdxCustomAdorner
ACanvas TdxGPCanvas
AViewInfo TdxCustomAdornerViewInfo
ADone Boolean

#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