comp • gb.form • completion

Completion (gb.form)

This class allows to implement automatic completion of text field.

This class is just a template: you create an actual automatic completion by inheriting it and overriding its methods.

This class is
Create a new automatic completion on the specified control.
creatable
.

Properties

Methods Events
Return or set the delay in milliseconds between a keypress and showing the completion popup. The default is 350.
Delay  
The TextBox or TextArea to offer completions for.
Editor  
The array of icon names to be displayed in the popup box next to the completion suggestions in the List property. The names are looked up in the Picture cache.
Icons  
The array of completion suggestions in the popup box.
List  
The character position inside the Editor at which the popup list will be displayed.
Start  
Closes the completion popup.
Close  
This method must be reimplemented by all classes which inherit Completion. Fill is called whenever the completion popup must be displayed. You are given an initial string Text and have to fill the List property with all completions of Text that apply to your specific completion class. For example, FileCompletion fills List with all files whose path starts with Text.
Fill  
Opens the completion popup.
Open  
Raised when a completion has been chosen from the list popup.
Activate  

See also

FileCompletion