[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTabControl.OnCloseTabClicked

Event handler signalled when a tab is closed.

Declaration

Source position: comctrls.pp line 494

public property TCustomTabControl.OnCloseTabClicked : TNotifyEvent
  read FOnCloseTabClicked
  write FOnCloseTabClicked;

Description

OnCloseTabClicked is a TNotifyEvent property with the event handler signalled when a tab on the control is closed. OnCloseTabClicked is signalled (when assigned) when the user clicks on the close button for a given tab. An application can implement and assign a handler routine which performs actions needed when the tab is closed.

The Sender argument contains the tabbed control instance for the event notification, but must be cast to TCustomTabControl to access properties and methods specific for the class type.

See also

TCustomTabControl.DoCloseTabClicked

  

Performs actions needed when the tab for the specified page object is closed.

TNotifyEvent


Version 4.0 Generated 2025-05-03 Home