Sign in Join
FPDoc Onlineexperiment

TCustomHCCreateSectionClassEvent procedure type

In unit ComCtrls

Specifies the event handler signalled to get the class type for a new section on a THeaderControl instance.

Declaration

pascal
TCustomHCCreateSectionClassEvent = procedure
 (Sender: TCustomHeaderControl; 
 var SectionClass: THeaderSectionClass)
 of object

Arguments

Sender

Object (TCustomHeaderControl) for the event notification.

SectionClass

Returns the class type used to create a new section on a THeaderControl.

Description

TCustomHCCreateSectionClassEvent is an object procedure type which specifies an event handler signalled when a new section is created for THeaderControl. It is the type used for the OnCreateSectionClass property in TCustomHeaderControl.

An application can implement and assign a method using the method signature to respond to the event notification. Arguments to the handler include the TCustomHeaderControl for the event notification (Sender) and the class type needed to create a new section for the control (SectionClass).

TCustomHCCreateSectionClassEvent allows a class other than THeaderSection to be used to create a section collection item. The type should, however, be a descendant of THeaderSection as it is the base type expected in the THeaderSections collection.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.