I have the following code in the events:
OnExit:
procedure TFEqt_Pallet.EdNr_PalletExit(Sender: TObject);
var
MeuKey: word;
begin
MeuKey := 13;
EdNr_PalletKeyDown(EdNr_Pallet,MeuKey,[]);
end;
OnKeyDown:
procedure TFEqt_Pallet.EdNr_PalletKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Ord(key) = 13 then
begin
...
proximocampo.setfocus;
end;
When I give an enter in the component it is calling the OnExit method twice. How can I resolve this?