Back to Devexpress

TdxCustomRibbon Class

vcl-dxribbon-93416ada.md

latest10.0 KB
Original Source

TdxCustomRibbon Class

The base class for the Ribbon control.

Declaration

delphi
TdxCustomRibbon = class(
    TcxControl,
    IdxSkin,
    IdxRibbonFormClient,
    IdxRibbonFormNonClientPart,
    IdxRibbonFormNonClientHelper,
    IdxRibbonFormNonClientDraw,
    IdxRibbonMouseWheelReceiver,
    IdxFormKeyPreviewListener,
    IdxBarManagerMergeOperationHandler,
    IdxBarAccessibleObject
)

Remarks

The Ribbon control allows you to create a Ribbon UI inspired by Microsoft Office® applications.

Main API Members

The list below outlines key members of the TdxCustomRibbon class. These members allow you to create and configure the Ribbon UI in your application.

General Ribbon UI Appearance Settings

BackgroundImageAllows you to load and display a background image for Ribbon tab area and Ribbon Form non-client areas (only for supported Ribbon styles).CapitalizeTabCaptionsSpecifies if Ribbon tab captions are capitalized like in Microsoft Office® 2013.ColorSchemeAccent | ColorSchemeName

Allows you to specify an individual skin and a Microsoft Office-inspired color accent[1] for the Ribbon UI.

Note

These settings automatically synchronize with a TdxSkinController component in the project to ensure consistent application appearance. You can set the UseGlobalSkin property to bFalse to explicitly disable global skin synchronization and use ColorSchemeName and ColorSchemeAccent properties to define a different appearance for your Ribbon UI.

DefaultFormIconPlaceholderWidthAllows you to adjust the size of the area allocated for the application icon when it is hidden. This setting affects all Ribbon controls in the application.DefaultUseGlobalSkinEnables or disables synchronization with global skin and palette for all Ribbon controls in the application. The UseGlobalSkin property allows you to override this setting at the level of an individual Ribbon control.DocumentNameAllows you to display the opened document’s name in the application title bar, similar to Microsoft Office® applications.EnableTabAero | SupportNonClientDrawingAllow you to decorate the parent form’s non-client areas.FontsProvides access to font settings of all Ribbon UI elements.FormIconPlaceholderWidthAllows you to adjust the size of the area allocated for the application icon when it is hidden.OptionsFadingAllows you to configure fading animation effects for Ribbon UI elements.ShowFormIconAllows you to explicitly hide or display the application icon regardless of the selected Ribbon UI style.UseGlobalSkinSpecifies if the Ribbon control synchronizes ColorSchemeName and ColorSchemeAccent properties with global skin and palette defined through a TdxSkinController component affect the current Ribbon control instance.

Ribbon UI Elements and Layout

ApplicationButton | OnApplicationMenuClickAllow you to display and configure the Application button.CaptionAreaSearchToolbar | TabAreaToolbar | TabAreaSearchToolbar | QuickAccessToolbar

Allow you to configure docked toolbar containers in the Ribbon UI.

Note

The Style property value limits the availability of certain toolbar containers in the Ribbon UI.

HelpButton | HelpButtonScreenTip | OnHelpButtonClickAllow you to display and configure the Help button in the Ribbon UI.Layout | StyleSpecify the active Ribbon UI style and layout. Different styles significantly affect Ribbon UI appearance and functionality.ShowMinimizeButtonSpecifies if the Ribbon minimization button is visible.ShowTabGroups | ShowTabHeadersSpecify if Ribbon tab groups and headers are visible.TabAreaToolbar | TabAreaSearchToolbar | QuickAccessToolbarAllow you to configure toolbars in the Ribbon UI.

Ribbon UI Behavior Settings

MinimizeOnTabDblClickSpecifies if users can double-click a Ribbon tab to minimize the Ribbon UI.OnHideMinimizedByClickAllows you to execute additional actions when a user double-clicks a Ribbon tab to minimize the Ribbon UI.OnMinimizedChangedAllows you to respond to Ribbon UI collapse and expand operations.

Ribbon Tab Management

ActiveTabSpecifies the active Ribbon tab.OnTabChanged | OnTabChanging | OnTabGroupCollapsed | OnTabGroupExpandedAllow you to respond to Ribbon tab and tab group state changes.TabCount | VisibleTabCountReturn the total number of tabs and the number of currently visible tabs in the Ribbon UI.Tabs | VisibleTabsProvide access to visible and hidden Ribbon UI tabs.

General-Purpose API Members

BarManagerSpecifies the parent bar manager component.BeginUpdate | EndUpdateAllow you to avoid excessive redraw operations during batch appearance and behavior setting changes.HiddenSpecifies if the Ribbon UI is hidden.

Terminal TdxCustomRibbon Class Descendant

Do not use the TdxCustomRibbon class directly. Use the TdxRibbon control instead.

Implements

IdxSkin

IdxRibbonFormClient

IdxRibbonFormNonClientDraw

IdxRibbonMouseWheelReceiver

IdxBarManagerMergeOperationHandler

Inheritance

TObject TPersistent TComponent TControl TWinControl TCustomControl TcxCustomControl TcxControl TdxCustomRibbon

Footnotes

  1. The ColorSchemeAccent property allows you to switch between Microsoft Office-inspired color accents when a built-in Ribbon skin is active and the Ribbon style is Office 2010 or newer.

See Also

Converting Bars to Ribbon

How to Create a Ribbon Control at Design Time

How to Create a Ribbon Control in Code

Ribbon User Interface

TdxCustomRibbon Members

dxRibbon Unit