IRibbon.ActiveCategory

Syntax

ActiveCategory: IRibbonCategory;

Description

The ActiveCategory property determines an active ribbon tab.

Example

Executing the example requires a form, a button with the Button1 name on it and the Ribbon component with the Ribbon1 name.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Categories: IRibbonCategories;
Begin
    Categories := Ribbon1.Categories;
    Ribbon1.ActiveCategory := Categories.Item(Categories.Count - 1);
End Sub Button1OnClick;

Clicking the button sets the last ribbon tab as active.

See also:

IRibbon