![]() |
Im Edit Enter
Hallo,
ich will, das wenn man in einem Edit Feld Enter drückt, eine bestimmte aktion ausgeführt wird. Mit On Enter geht es nicht. |
Re: Im Edit Enter
wie wäre es damit:
Delphi-Quellcode:
Ist ungetestet, müsste aber gehen...
// in onkeydown:
if Key = VK_RETURN then //do it |
Re: Im Edit Enter
Zitat:
Wenn ich es im Edit mache, dann kann ich ein zeichen schreiben und dann ist der curser weg |
Re: Im Edit Enter
Das muss ins Editx.onKeyDown.
Was machst du denn bis jetzt? Zeig mal ´n bissl Code! |
Re: Im Edit Enter
Hallo,
ich hab das mit OnKeyPress gelöst:
Delphi-Quellcode:
PROCEDURE Tform1.edit1_KeyPress(Sender: TObject;
var Key: Char); begin if key = #13 then Button1_Click(Sender); end; |
Re: Im Edit Enter
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz