Skip to main content

TdxNavBarCustomDrawLinkEvent Type

The NavBar control’s custom draw link event type.

Declaration

TdxNavBarCustomDrawLinkEvent = procedure(Sender: TObject; ACanvas: TCanvas; AViewInfo: TdxNavBarLinkViewInfo; var AHandled: Boolean) of object;

Parameters

Name Type
Sender TObject
ACanvas TCanvas
AViewInfo TdxNavBarLinkViewInfo
AHandled Boolean

Remarks

Use the Sender parameter to access the NavBar control that raised a TdxNavBarCustomDrawLinkEvent event. Cast the parameter value to the TdxNavBar class to access the control’s API members.

The ACanvas and AViewInfo parameters allow you to access the drawing surface and ViewInfo information (refer to the TdxNavBarLinkViewInfo class description for details) used to draw a NavBar link.

Assign True to the AHandled parameter to disable the default NavBar link draw routines.

The NavBar control’s OnCustomDraw.Link and OnCustomDraw.LinkSelection events reference the TdxNavBarCustomDrawLinkEvent procedural type.

See Also