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.

Esta clase es instanciable.

Delay   Return or set the delay in milliseconds between a keypress and showing the completion popup. The default is 350.
Editor   The TextBox or TextArea to offer completions for.
Icons   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.
List   The array of completion suggestions in the popup box.
Start   The character position inside the Editor at which the popup list will be displayed.

Close   Closes the completion popup.
Fill   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.
Open   Opens the completion popup.

Activate   Raised when a completion has been chosen from the list popup.

See also