TdxAdornerCustomDrawEvent Type
The UI adorner custom draw event type.
Declaration
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:
The UI adorner’s OnCustomDraw and OnCustomDrawBackground events;
The UI adorner manager’s OnAdornerCustomDraw and OnAdornerCustomDrawBackground events.