Skip to main content
A newer version of this page is available. .

TdxNavBarCustomDrawEvent Type

The NavBar control’s general custom draw event type.

Declaration

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 the 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