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

Custom Draw Basics

The NavBar control supports a custom draw feature. It provides a number of events occurring when painting of specific NavBar elements is required. Writing these event handlers gives a user full control of the NavBar control appearance.

Custom drawing can be implemented for the following elements of the NavBar control:

Custom draw events accept a number of parameters. These parameters identify:

  • Sender – a NavBar control element to be painted;

  • ACanvas – drawing surface of a specific element (specified via a TCanvas instance);

  • AViewInfo – information on the element layout (specified via a ViewInfo class instance, whose type corresponds to the painted element);

  • AHandled – a parameter, determining whether the default painting is not required. Set it to True if the custom drawing is implemented by an event handler.

See Also