Table of Contents

TTMSFNCPageControl Class

Tabbed page control that organises content across multiple switchable pages.

API unit family: TMSFNCPageControl Inherits from: TTMSFNCCustomPageControl

Syntax

TTMSFNCPageControl = class(TTMSFNCCustomPageControl)

Properties

Name Description
ActivePage Gets or sets the currently displayed page. (inherited from TTMSFNCCustomPageControl)
ActivePageIndex Zero-based index of the currently active page. (inherited from TTMSFNCCustomPageControl)
Collapsed When True, the page area is hidden and content is accessible via a popup. (inherited from TTMSFNCCustomPageControl)
PageContainers Returns the content container for the page at the given index. (inherited from TTMSFNCCustomPageControl)
Pages Collection of pages displayed by this control. (inherited from TTMSFNCCustomPageControl)

Methods

Name Description
AddPage Adds a new page with optional tab text and returns it. (inherited from TTMSFNCCustomPageControl)
BeginUpdate Suspends visual updates while making multiple changes to pages or tabs. (inherited from TTMSFNCCustomPageControl)
ClosePopup Closes the popup that shows content when the control is collapsed. (inherited from TTMSFNCCustomPageControl)
EndUpdate Resumes visual updates after a matching call to BeginUpdate and repaints the control. (inherited from TTMSFNCCustomPageControl)
InitSample Populates the control with sample pages for design-time preview.
InsertPage Inserts a new page at the given index with optional tab text and returns it. (inherited from TTMSFNCCustomPageControl)
LoadSettingsFromFile Loads the page control settings from a file. (inherited from TTMSFNCCustomPageControl)
LoadSettingsFromStream Loads the page control settings from a stream. (inherited from TTMSFNCCustomPageControl)
MovePage Moves a page from one position to another. (inherited from TTMSFNCCustomPageControl)
RemovePage Removes the page at the given index from the control. (inherited from TTMSFNCCustomPageControl)
UpdateControlAfterResize Recalculates page container bounds and tab positions after the control is resized. (inherited from TTMSFNCCustomPageControl)

Events

Name Description
OnBeforeChangePage Fires before the active page changes, allowing the change to be cancelled. (inherited from TTMSFNCCustomPageControl)
OnBeforeClosePage Fires before a page is closed, allowing the action to be overridden. (inherited from TTMSFNCCustomPageControl)
OnBeforeInsertPage Fires before a new page is inserted, allowing the insertion to be cancelled. (inherited from TTMSFNCCustomPageControl)
OnBeforeReorderPage Fires before a page is reordered, allowing the move to be cancelled. (inherited from TTMSFNCCustomPageControl)
OnChangePage Fires after the active page has changed. (inherited from TTMSFNCCustomPageControl)
OnClosePage Fires after a page has been closed. (inherited from TTMSFNCCustomPageControl)
OnInsertPage Fires after a new page has been inserted. (inherited from TTMSFNCCustomPageControl)
OnReorderPage Fires after a page has been moved to a new position. (inherited from TTMSFNCCustomPageControl)

Used by