RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFrame.OnAlignInsertBefore Event

Occurs when an object with custom alignment is aligned.

Pascal
property OnAlignInsertBefore: TAlignInsertBeforeEvent;
C++
__property TAlignInsertBeforeEvent OnAlignInsertBefore;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!