<< Click to display table of contents >> TSRVTabSet.OnCloseTab |
Occurs when the user attempts to close a tab.
type
TSRVCloseTabEvent = procedure(Sender: TSRVTabSet; TabIndex: Integer;
var CanClose : Boolean) of object;
property OnCloseTab: TSRVCloseTabEvent;
Parameters
TabIndex – the index of the tab to close (in the Tabs collection).
Set CanClose to False to prevent closing.
When a tab is closed, its object is removed from Tabs and freed.