Hi,
I am trying to use the Lookup feature of the TTMSFMXEdit component, but the lookup list is not dropping down or displaying at runtime.
I have hooked up an event for the control that fires using the "OnTyping" event:
procedure TfrmCreateShipment.edtAddressSearch2Typing(Sender: TObject);
Var
i : Integer;
begin
inherited;
If fAddressBookController.SearchAddressBook(edtAddressSearch2.Text) Then
Begin
edtAddressSearch2.Lookup.Enabled := True;
for i := 0 To Pred(fAddressBookController.SearchResultsList.Count) Do
Begin
edtAddressSearch2.Lookup.DisplayList.Add(fAddressBookController.SearchResultsList.SearchResultsText);
End;
edtAddressSearch2.Lookup.DisplayCount := edtAddressSearch2.Lookup.DisplayList.Count;
End;
end;
The event is firing, search results are being added to the Displaylist, but no lookup list is displayed.
Am I missing something? I have followed the developer guide PDF?
FMX definition of the FMXEdit is:
object edtAddressSearch2: TTMSFMXEdit
DisableFocusEffect = False
KeyboardType = vktDefault
Password = False
Position.X = 240.000000000000000000
Position.Y = 16.000000000000000000
Width = 145.000000000000000000
Height = 22.000000000000000000
OnTyping = edtAddressSearch2Typing
Lookup.Separator = ';'
end