Sign in Join
FPDoc Onlineexperiment

TSBCreatePanelClassEvent procedure type

In unit ComCtrls

Specifies an event handler signalled to get the class type for a new status bar panel.

Declaration

pascal
TSBCreatePanelClassEvent = procedure(Sender: TStatusBar; 
 var PanelClass: TStatusPanelClass)
 of object

Arguments

Sender

Object (TStatusBar) for the event.

PanelClass

Class reference for the new panel.

Description

TSBCreatePanelClassEvent is an object procedure type and specifies an event handler used to get the class type needed for a new status bar panel instance.

Sender is the status bar where the panel will be created. It must be cast to TStatusBar to access properties and method specific to the class type.

PanelClass is a variable argument with the class type used to create the new panel instance. It can be updated in the event handler to use the value from the GetPanelClass method in the status bar, or another class type if desired.

TSBCreatePanelClassEvent is the type used for the OnCreatePanelClass event handler in TStatusBar.

See also

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