Skip to main content

Custom Painting Static Elements

There are multiple ways to customize the NavBar appearance. The most powerful method is to implement the custom draw feature. This feature is implemented via a number of events.

Some of the NavBar elements keep their appearance regardless of the NavBar control state. These elements are:

  • The control background
  • The group client areas background
  • The group client areas foreground

The corresponding custom draw events are listed below:

Event Description
OnCustomDraw.Background Allows painting of the entire NavBar control background.
OnCustomDraw.GroupClientBackground Allows painting of NavBar groups’ client areas.
OnCustomDraw.GroupClientForeground Allows painting of NavBar groups’ client areas foreground. Handling this event gives you the ability to perform custom painting over the default painted group background, if you do not want the default group background painting to be overridden. For instance, you can use this event to display static text and images within a group instead of links.

For information on the custom draw events parameters see the Custom Draw Basics topic.

See Also