EControl Syntax Editor SDK
TTemplatePopup.Execute Method

Inserts templates or displays pop-up list box to select template from the list.

function Execute: Boolean; override;

If the word at the left side of the caret position is equal to the short-cut (case insensitive) of any code template in the list, removes this word and inserts found code template (using InsertTemplate method). 

Otherwise Execute displays pop-up list box with templates list. User can select code template to be inserted at caret position.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!