Table of Contents

TScripterCodeInsight Class

A helper class that provides code completion and parameter hint capabilities for the scripter.

Remarks

TScripterCodeInsight offers methods to retrieve completion and parameter hint information for use with TIDEMemo or any custom editor. It also tracks previous completion choices to improve the user experience.

Syntax

Unit: atScript

TScripterCodeInsight = class(TObject);

Methods

Name Description
CreateCodeCompletion​List Builds a code completion list similar to GetCodeCompletion, but with integer type tags in the Objects[] entries.
GetCodeCompletion Builds a string list containing code completion suggestions related to a input string AInputText (source code) and an cursor position (AInputPos).
GetParameterHint Returns the parameter hint to be displayed given an specified token
GetParameterHintInfo Provides context information about the parameter hint to be displayed

Properties

Name Description
Context Set this property if you want code completion methods to use historical choices from user.
Those methods will load and update this context. If this is not set, it will be ignored.