Firemonkey Edit/Combo autocomplete/autosuggest while typing

前端 未结 3 646
广开言路
广开言路 2021-01-15 06:17

What is the way to implement Autocomplete or Autosuggest with Delphi/Firemonkey for Windows/Android platforms as well as MacOS and iOS?

3条回答
  •  走了就别回头了
    2021-01-15 07:06

    In the previous answer for Delphi XE10 change line

    Result := TStyledSuggestEdit.Create(nil);
    

    to

     Result := TStyledSuggestEdit.Create(nil, Model, PresentedControl);
    

    in the function TStyleSuggestEditProxy.CreateReceiver: TObject;

    Plus change Data.Key = 'Suggestions' to Data.Key = 'suggestions' in the TStyledSuggestEdit.MMDataChanged

提交回复
热议问题