ImageEn, unit imageenview |
|
TImageEnView.OnVirtualKey
Declaration
property OnVirtualKey: TIEVirtualKeyEvent;
Description
Occurs whenever the component receives WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP or WM_SYSKEYUP message.
procedure TfrmMain.ImageEnView1VirtualKey(Sender: TObject; VirtualKey, KeyData: DWORD; KeyDown: Boolean);
begin
// Ctrl+Q clears the content
if ( VirtualKey = Ord( 'Q' )) and ( KeyDataToShiftState(KeyData) = [ ssCtrl ]) then
ImageEnView1.Clear();
end;