comp • gb.form • completion • fill

Completion.Fill (gb.form)

Sub Fill ( Text As String, Explicit As Boolean )

  • Text: the initial text to complete.

  • Explicit: this argument is used by the code inside the Completion class to indicate that Fill has been called from the Open method.

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.

Additionally, Icons specifies icons which are displayed next to each completion in the popup. Using Start, you can fine-tune where the popup should be displayed.

See also