RAD Studio
ContentsIndex
PreviousUpNext
Creating an Application that Uses Ribbon Controls

This procedure describes how to create an application that uses ribbon controls. The core ribbon functionality is derived from the TRibbon component. While the ribbon uses other components, none of the core components are registered on the tool palette.  

Components:

  1. TRibbon: Main visual component that provides most functionality.
  2. TRibbonApplicationMenuBar: Component that provides the functionality of the application menu.
  3. TRibbonQuickAccessToolbar: Component that provides the functionality of the Quick Access Toolbar
  4. TRibbonPage: Component that represents the page of the ribbon that is currently visible
  5. TRibbonGroup: Component that all of the pages commands are displayed in. Commands must be placed in a group.
 

To create a new application that uses ribbon controls

  1. Create a new Delphi Win32 VCL application (select NewVCL Forms Application — Delphi for Win32).
  2. Drop a TActionManager component onto the form.
  3. Drop a TRibbon component onto the form.
  4. Right-click the TRibbon component and select the Add Application Menu item.
  5. Right-click the TRibbon component again and select the Add Quick Access Toolbar item.
Note: During initial configuring of the ribbon you might see a dialog saying that the current style selected in the TActionManager.Style is not a valid ribbon style. Change the TRibbonManager.Style property to be the Ribbon – Luna. Applicable styles for use with the ribbon have the Ribbon prefix. By default three ribbon styles are implemented. These ribbon styles also work with the default ActionManager toolbar and menu bar controls. The available ribbon Styles are:
  • Luna
  • Obsidian
  • Silver

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!