
Zitat von
Hansa:
warum wird im folgenden Fall bei Drücken von #13 das Onclick ausglöst ?

Weil du den Tastendruck nicht
"vernichtet" hast:
<Edit>
Stimmt nicht, also vergiss es.</Edit>
Delphi-Quellcode:
procedure TForm1.StringGrid1KeyPress(Sender: TObject; var Key: Char);
begin
if key = #13 then
begin
StringGrid1.Col := StringGrid1.Col + 1;
key := #0; // <---
end;
end;