Links
EControl Syntax Editor SDK
TAutoCompletePopup.OnAfterComplete Property

Occurs after inserting auto-complete item in the editor's text.

property OnAfterComplete: TAfterAutoComplete;

Write OnAfterComplete event handler to take specific action after inserting auto-complete item.

procedure Form1AfterComplete(Sender: TObject; const Item: string);
begin
 if Value = '<HTML></HTML>' then
   SyntaxMemo1.CaretStrPos := SyntaxMemo1.CaretStrPos - 6;
end;
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!