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

TdxCustomRibbon.Style Property

Specifies the Ribbon UI style.

#Declaration

Delphi
property Style: TdxRibbonStyle read; write; default rs2007;

#Property Value

Type Default Description
TdxRibbonStyle rs2007

The active Ribbon UI style.

#Remarks

The Ribbon control allows you to create a UI that imitates the Ribbon UI found in different versions of Microsoft Office® products. Different Ribbon styles significantly change the Ribbon control’s appearance and behavior.

#Property Value Examples

rsOffice365
VCL Bars: The Office 365 Ribbon UI Style
rs2016Tablet
VCL Bars: The Office 2016 Tablet Ribbon UI Style
rs2007 (default)
VCL Bars: The Office 2007 Ribbon UI Style

Refer to the TdxRibbonStyle type description for detailed information on all available options.

Tip

The ExpressBars library ships with a Ribbon-based application template that creates a new application project with a form derived from the TdxRibbonForm class. The new form has a preconfigured TdxSkinController component and an embedded TdxRibbon control with one tab.

Refer to the TdxRibbonForm class description for details.

#UI Element Visibility in Compact Ribbon Layouts

The Ribbon control has a compact (simplified) layout when one of the following conditions is met:

A compact Ribbon layout contains only one row of buttons and does not include multi-level drop-down menus. If a user activates a submenu, it appears in the same drop-down container.

VCL Bars: Office 365 Style - Simplified Ribbon UI Layout

A compact Ribbon layout displays only those UI elements whose corresponding item links include ivlSmallIconWithText and ivlSmallIcon flags in the ViewLevels property value.

Tip

You can use a bar item’s Glyph property to load an icon to mark the bar item in a compact Ribbon layout.

#Ribbon UI Styles and the Application Icon

The Ribbon Form hides or displays the application icon depending on the Style property if the ShowFormIcon property is set to bDefault:

rsOffice365 | rs2013 | rs2010
The application icon is visible.
rs2007 | rs2016 | rs2016Tablet | rs2019
The application icon is hidden.

#Default Value

The Style property’s default value is rs2007.

Note

The Style property value is rsOffice365 for a TdxRibbon control created at design time. The Ribbon-Based Application Template can create a TdxRibbon control with any initial Style property value.

See Also