procedure TForm1.Edit1ContextPopup(Sender: TObject; MousePos: TPoint;
var Handled: Boolean);
begin
Handled := true;
end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if not CharInSet(Key, [#$08, #$2C, #$30 .. #$39]) then Key := #0
else if (Key = #$2C) and (Pos(Key, Edit1.Text) > 0) then Key := #0;
end;