Skip to main content
A newer version of this page is available. .

How to: Create a Ribbon or Toolbar UI for your Scheduler-based Application

  • 3 minutes to read

The Scheduler control can automatically generate a Ribbon or toolbar UI at design time to allow you to create fully-functional calendar and scheduler applications in a few clicks.

Automatic UI Generation for the Scheduler Control

Create a Ribbon-Style VCL Application

Click the FileNewOther… item in the IDE’s main menu to invoke the New Items dialog, and select the Ribbon-based application template.

The DevExpress VCL 22.1 Ribbon Based Application template 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.

Ribbon-Based DevExpress Application Template

Select a Ribbon style.

Available Ribbon Styles

Add and Configure the Scheduler Control and Additional Components

Place a TcxScheduler control and a TcxSchedulerStorage component on the created Ribbon form. Then, set the cxScheduler1 control’s alignment to alClient.

Simple Ribbon Application Layout

Configure the Unbound Storage Component

Assign the cxSchedulerStorage1 component to the TcxScheduler control’s Storage property in the Object Inspector:

The Storage Property in the Object Inspector

Configure the Component Printer

Place the TdxComponentPrinter component on the same form to make print-related UI elements functional in the resulting Ribbon UI. Double-click the component and click the Add button in the opened dialog to create a report link for the TcxScheduler control to allow users to print its content.

The Add Report Dialog

Select the cxScheduler1 component in the Add Report dialog and click the OK button.

Generate the Ribbon UI

Right-click the cxScheduler1 control to invoke its context menu and click the Generate Ribbon/Toolbar UI… item.

Design Time Context Menu

The Generate Ribbon/Toolbar UI dialog appears.

The Generate Ribbon/Toolbar UI Dialog

This dialog has the following UI elements:

The “Target” combo box
Allows you to choose between the TdxRibbon and TdxBarManager targets. If your project already has at least one of these components, the combo box includes them as available UI generation targets.
The “Action List” combo box
Allows you to create a new or select an existing action list component used to host generated action objects linked to individual UI elements.
The “Categories to Create” box
Lists the command categories that the TcxScheduler control is about to generate. The control generates action objects and corresponding UI elements only for the checked command categories.
The “Use SVG Icon Set” check box
Allows you to choose between vector and bitmap icon sets for automatically generated UI elements. You can deselect this check box to use bitmaps instead of vector icons.

Note

The Scheduler control’s automatic UI generator does not affect existing UI elements, action lists, and action objects in your application project, even if you selected existing components as UI generation targets.

Click the OK button to initiate the UI creation process with the selected settings.

UI Generation Result

Configure the Generated Ribbon UI

Remove the Redundant Tab

Right-click the dxRibbon1Tab1 tab and click the Delete Tab item in the context menu.

Delete the dxRibbon1Tab1 Tab

Hide the Application Button

Select the Ribbon UI, expand the ApplicationButton node in the Object Inspector. Set the ApplicationButton.Visible property to False to hide the application button.

Hide the Application Button

Change the Color Scheme (Optional)

Set the ColorSchemeAccent property to rcsaOrange or any other value in the Object Inspector:

Change the Color Scheme

Run and Test the Application

You can now build and run the Scheduler-based application with an automatically generated Ribbon UI.

Ready-to-use Ribbon UI for the Scheduler Control

See Also