TCompositeCellEditor.CustomAlignPosition procedure
Sets the position for the editor in the composite control.
Declaration
procedure CustomAlignPosition(AControl: TControl;
var ANewLeft: Integer;
var ANewTop: Integer;
var ANewWidth: Integer;
var ANewHeight: Integer;
var AlignRect: TRect;
AlignInfo: TAlignInfo); overrideArguments
AControl | Editor control positioned and aligned in the method. |
ANewLeft | New coordinate value derived in the method. |
ANewTop | New coordinate value derived in the method. |
ANewWidth | New size value derived in the method. |
ANewHeight | New size value derived in the method. |
AlignRect | Rectangle where the control is aligned. Not updated in the method. |
AlignInfo | Not used in the current implementation. |
Description
CustomAlignPosition is an overridden method in
TCompositeCellEditor used to position and align the specified
control in the composite editor. Currently there is only one aligned control
in the composite editor; no provisions are made for calling
CustomAlignInsertBefore() or sharing space with other editors in the control.
The variable arguments are updated in the method to reflect the new position and size for the specified control, including:
- ANewLeft
- ANewTop
- ANewWidth
- ANewHeight
CustomAlignPosition does not call the inherited method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
