Vcl.StdCtrls.TCustomMemo.KeyPress

提供:RAD Studio API Documentation

Delphi

procedure KeyPress(var Key: Char); override;

C++

DYNAMIC void __fastcall KeyPress(System::WideChar &Key);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomMemo

説明

WantReturns が false のとき,改行文字がテキストに入らないように保証します。

KeyPress メソッドは,キーが押された時点で自動的に呼び出されます。OnKeyPress イベントハンドラを呼び出す継承した KeyPress を呼び出した後,KeyPressWantReturns が false のとき,改行文字を削除します。

関連項目