ImageEn, unit ievect

TImageEnVect.OnTextKeyDown

TImageEnVect.OnTextKeyDown


Declaration

property OnTextKeyDown: TKeyEvent;


Description

Occurs whenever a key is pressed inside a TEXT or MEMO object.


Example

procedure TMainForm.ImageEnVect1TextKeyDown(Sender: TObject; var Key: Word;
    Shift: TShiftState);
begin
  // Make the Enter key cancel text input
  if Key = VK_Return then
  begin
    Key := 0;
    ImageEnVect1.CancelInteracts;
  end;
end;