class SuggestCtrl : public EditString
![](src$CtrlLib$SuggestCtrl_en-us.html_0.png)
This widget complements EditString with suggestions.
void ClearList()
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 FindAddList(const WString& s)
void FindAddList(const String& s)
void FindAddList(const char *s)
Adds s to suggestions list if it is not there already.
const Vector<WString>& GetList()
Returns the current list of suggestions.
void Pick(Vector<WString>&& 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.
|