Vcl.Controls.TAlignInsertBeforeEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TAlignInsertBeforeEvent = function(Sender: TWinControl; C1, C2: TControl): Boolean of object;

C++

typedef bool __fastcall (__closure *TAlignInsertBeforeEvent)(TWinControl* Sender, TControl* C1, TControl* C2);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

TAlignInsertBeforeEvent is the function type for an OnAlignInsertBefore event.

CustomAlignInsertBefore triggers the OnAlignInsertBefore event. OnAlignInsertBefore occurs for each pair of child controls with an Align property of alCustom. It can determine the order in which custom-aligned child controls are placed. OnAlignInsertBefore returns true if C2 should be presented before C1, and false otherwise.

TAlignInsertBeforeEvent has the following parameters:



Value Meaning

Sender

Parent control.

C1

First control to be ordered.

C2

Second control to be ordered.



See Also