ImageEn, unit imageenview

TImageEnView.OnTextEditorKeyDown

TImageEnView.OnTextEditorKeyDown


Declaration

property OnTextEditorKeyDown: TKeyEvent;


Description

Occurs whenever a key is pressed when editing the text of a TIETextLayer or TIELineLayer.


Example

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