TTMSFNCRibbonPageControl Class
Ribbon-specific page control that hosts the tab set and per-page toolbar containers; supports collapsing and theme propagation.
API unit family: TMSFNCRibbon
Inherits from: TTMSFNCPageControl
Implements: ITMSFNCRibbonTheme
Syntax
TTMSFNCRibbonPageControl = class(TTMSFNCPageControl, ITMSFNCRibbonTheme)
Properties
| Name |
Description |
| Collapsable |
When True, the page control can be collapsed to show only the tab strip, expanding on tab click. |
| Container |
The container panel directly above the tab strip that can host additional controls. |
| FileButton |
The application/file button displayed at the left end of the tab strip. |
| PageContainers |
Indexed access to the per-page toolbar container panels. |
| Pages |
Collection of ribbon pages (tabs) managed by this page control. |
Methods
| Name |
Description |
| AddPage |
Appends a new ribbon page to the page control and returns it. |
| ClosePopup |
Closes any open popup panel associated with the ribbon page control. |
| InsertPage |
Inserts a new ribbon page at the specified index and returns it. |
| SetTheme |
Applies a built-in or custom theme to the page control and all hosted pages. |
| UpdateControlAfterResize |
Repositions ribbon child controls (container, file button, page containers) after the page control is resized. |
Events
| Name |
Description |
| OnAppliedTheme |
Fires after a theme is applied to the page control. |
| OnBeforeApplyTheme |
Fires before a theme is applied to the page control, allowing the default theming to be suppressed. |
Used by