: This message was edited by RichardK at 2006-2-14 12:39:41
: : i want to be able to press enter in a certain editbox when data is enetered and then call a procedure that can also be called by clicking a button, like a shortcut.
: :
: Hi
:
: This code should work. You are trying to intercept the on key press event.
:
: procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
: begin
: if Key = #13 then //#13 = enter
: begin
: //----- Add Method Call in here -----
: //just a line to prove it works
: Messagebox(handle,'test','test',MB_Ok);
: end;
: end;
:
:
:
:
: EXCELLENT, thank you!!