Skip to main content

Ribbon Status Bar

  • 2 minutes to read

The ExpressBars Suite includes a status bar control designed to support the Ribbon UI.

Ribbon Status Bar Example

Our Ribbon Status Bar implementation is represented by a TdxRibbonStatusBar component, derived from TdxCustomStatusBar. Along with the Ribbon, this component is located on the Component Palette’s ExpressBars page. When dropped onto the form, the Ribbon and the Ribbon Status Bar controls are automatically docked to the form’s top and bottom, respectively.

To enable proper Ribbon and Status Bar interaction, bind the Ribbon to the Status Bar’s Ribbon property. In this instance, the Status Bar will automatically obtain paint style settings from the bound Ribbon. To learn more, see the Ribbon’s ColorSchemeName property.

You can split the Ribbon status bar into any number of sections, also called panels. Each section can have its own style based upon the information it displays. There are five pre-defined styles that can be specified by a Ribbon status bar section’s PanelStyle property:

To create and customize panels at design time, you can do one of the following:

  • Double click the status bar;

  • Invoke the status bar’s context menu and select ‘Panels Editor…’;

  • Press the ellipsis button corresponding to the Panels property.

Once the panels are set up, set the AutoSize property to True to cause the status bar to automatically resize in order to accommodate its panels. In addition, you can use the status bar’s SimplePanelStyle.Active property to optionally switch the status bar to display a single text panel rather than all the created panels. This functionality is similar to the SimplePanel property found in the standard VCL TStatusBar component.