ActiveCategory: IRibbonCategory;
ActiveCategory: Prognoz.Platform.Interop.Forms.RibbonCategory;
The ActiveCategory property determines active tab of the ribbon.
Executing the example requires a form, a button with the Button1 name located 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;
On clicking the button the last ribbon tab is set as active.
See also: