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

TdxNavBarCustomDrawLinkEvent Type

The NavBar control’s custom draw link event type.

#Declaration

Delphi
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