Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.OnAlignInsertBefore

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnAlignInsertBefore: TAlignInsertBeforeEvent read FOnAlignInsertBefore  write FOnAlignInsertBefore;

C++

__property TAlignInsertBeforeEvent OnAlignInsertBefore = {read=FOnAlignInsertBefore, write=FOnAlignInsertBefore};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Occurs when an object with custom alignment is aligned.

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. It holds a TAlignInsertBeforeEvent type.

CustomAlignInsertBefore triggers the OnAlignInsertBefore event. If this event is defined, CustomAlignInsertBefore returns the value returned by OnAlignInsertBefore. Defining this event allows users to define the order of control alignment without overriding CustomAlignInsertBefore.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance