Skip to main content

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