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

TdxNavBarCustomDrawEvent Type

The NavBar control’s general custom draw event type.

#Declaration

Delphi
TdxNavBarCustomDrawEvent = procedure(Sender: TObject; ACanvas: TCanvas; AViewInfo: TdxNavBarViewInfo; var AHandled: Boolean) of object;

#Parameters

Name Type
Sender TObject
ACanvas TCanvas
AViewInfo TdxNavBarViewInfo
AHandled Boolean

#Remarks

Use the Sender parameter to access the NavBar control that raised a TdxNavBarCustomDrawEvent 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 TdxNavBarViewInfo class description for details) used to draw the NavBar control.

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

See Also