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

# TCustomHeaderControl.OnSectionClick

Event handler signalled when a mouse click event occurs in a section header on the control.

## Declaration

Source position: comctrls.pp line 4104

`published property TCustomHeaderControl.OnSectionClick : TCustomSectionNotifyEvent read FOnSectionClick write FOnSectionClick;`

## Description

OnSectionClick is a TCustomSectionNotifyEvent property with the event handler signalled when a mouse click is handled for the header control. It is signalled (when assigned) from the SectionClick method using the THeaderSection instance where the mouse click occurred as an argument to the handler routine. On SectionClick is not signalled if the mouse click was on an unused part of the header control not covered by a header section.

## See also

TCustomHeaderControl.SectionClick |  | Performs actions needed when the mouse is clicked on the specified header section.
TCustomHeaderControl.Click |  | Signals OnClick and/or executes the ActionLink when the control has been clicked.
TCustomHeaderControl.GetSectionAt |  | Gets the header section at the position specified in P.
TCustomSectionNotifyEvent |  | TCustomSectionNotifyEvent - generic event notification method for header section.