Autor Beitrag
Grafix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 122

Windows 7 Professional
Delphi 2009, PHP, Prolog, Python, Java
BeitragVerfasst: So 10.05.09 21:53 
Moin,

wie kann ich ein Edit feld mit einem Button verknüpfen? Also wenn ich etwas ins Edit Feld eingeb und dann enter drücke soll der Button im Prinzip gedrückt werden. Geht das?
lG
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: So 10.05.09 22:00 
Schau dir mal das Ereignis
TEdit.OnKeyDown
an. Enter hat die Nummer #13

_________________
PROGRAMMER: A device for converting coffee into software.
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Do 14.05.09 19:08 
Ich würde dort eher dazu tendieren, Deinem (Bit-)Button die Eigenschaft Default:=True zu geben.
Damit wird er angesprochen, wenn Du die Enter-/Return-Taste drückst.

Oder geht das in einem Edit-Feld nicht, weil es dann automatisch einen Zeilenumbruch setzen möchte?