Vcl.Ribbon.TCustomRibbon.ActivePage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ActivePage: TCustomRibbonPage read GetActivePage write SetActivePage;

C++

__property TCustomRibbonPage* ActivePage = {read=GetActivePage, write=SetActivePage};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Ribbon.pas
Vcl.Ribbon.hpp
Vcl.Ribbon TCustomRibbon

Description

Page currently displayed by ribbon control.

ActivePage is the page currently displayed by the ribbon control.

Read ActivePage to determine which page is selected by the user. The user selects a page by clicking the mouse on its tab or selects the page's associated keytip. Set ActivePage to bring a page to the foreground. Only one page can be active at a time.

Use TRibbonTabs.SelectNext and TRibbonTabs.SelectPrior to select the next and prior pages in the ribbon. If the active page does not change after a call to SelectNext or SelectPrior, the return value of those functions is False.

To change the active page of the ribbon by Index, set the TabIndex property to the desired page index.

See Also