[Lazarus] SynEdit and gutter behaviour

Martin lazarus at mfriebe.de
Wed Sep 14 17:03:42 CEST 2011


On 14/09/2011 15:49, Martin wrote:
> On 14/09/2011 15:43, Bart wrote:
>>
>
> this is intended behaviour.
>
> Using SynEdit.Lines, does not trigger any "line change", also it does 
> not add "undo" (and previous undo will stop working)
> Lines are used for initialization
>
>
> Since it is of course not desired to select text only to change it, 
> there is
> SynEdit.TextBetweenPoints[Point(1,200), Point(20,200)]
>
> which can be set to
> SynEdit.TextBetweenPoints[Point(1,200), Point(20,200)] := 'foo';
>
> to insert text, use identical points
>
> there is
> SynEdit.TextBetweenPointsEx
>
> which has an extra param, to determine, if the caret should be moved 
> (if it was behind the location, and text changed (eg, lines inserted)
>
you can temporarily set the selection to be persistent, and it should be 
kept to

options2 := [eoPersistentBlock]




More information about the Lazarus mailing list