1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Procedure Tform1.FinDecouverteAppareils (Const Sender : TObject; Const Adevices : TBluetoothDeviceList);
begin
TThread.Synchronize(nil, procedure
Var I : Integer ;
begin
AniIndicator1.Visible:=False;
AniIndicator1.Enabled:=False;
FBluetoothDevicesList:=ADevices;
if FBluetoothDevicesList.Count>0 then
begin
Memo1.Lines.Add('Nbre d''appareils trouvés : ' + IntToStr(FBluetoothDevicesList.Count));
for I := 0 to FBluetoothDevicesList.Count-1 do
begin
ComboBox1.Items.Add(FBluetoothDevicesList.Items[I].DeviceName);
end;
ComboBox1.ItemIndex:=0;
end else
begin
Memo1.Lines.Add('Nbre d''appareils trouvés : 0');
end;
end);
end; |
Partager