RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TAlignInsertBeforeEvent Type

TAlignInsertBeforeEvent is the function type for an OnAlignInsertBefore event.

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

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!