class SuggestCtrl : public EditString
This widget complements EditString with suggestions.
Clears the suggestions list.
void AddList(const WString& s)
void AddList(const String& s)
void AddList(const char *s)
Adds s to suggestions list.
void Pick(Vector<WString> rval_ list)
Picks list to replace suggestions list.
SuggestCtrl& SetDropLines(int n)
Sets the height of suggestion list popup as number of lines to show. Default is 16.
SuggestCtrl& Delimiter(int chr)
Sets list separator as character. Default is none, which means text does not form a list.
SuggestCtrl& Delimiter(int (*filter)(int c))
Sets list separator as filter. Returning zero means character is not list separator. Filter can alter the character (e.g. to change ',' to ';') before it is written to the text.
SuggestCtrl& CompareFilter(int (*filter)(int c))
Sets filter to be applied to text and to the suggestions before it is compared while searching for suggestions.
SuggestCtrl& JustStart(bool b = true)
Only matches the starts of suggestions.