Links
EControl Syntax Editor SDK
TCustomSyntaxMemo.ScrollCaret Method (TPoint, TScrollAlignment, TScrollAlignment)

Scrolls text to make specified caret position visible.

function ScrollCaret(Cp: TPoint; VertAlign: TScrollAlignment; HorzAlign: TScrollAlignment): Boolean; overload;

HorzAlign - specifies how to align caret relative left and right sides of text area. VertAlign - specifies how to align caret relative top and bottom sides of text area. 

These parameters are of TScrollAlignment type:

Value 
Description 
saNone 
No alignment 
saNearestEdge 
Aligns to nearest edge 
saMinEdge 
Aligns to edge with minimal index (i.e. left or top) 
saCenter 
Aligns to center of text area. 
saMaxEdge 
Aligns to edge with maximal index (i.e. right or bottom) 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!