Einzelnen Beitrag anzeigen

HCB

Registriert seit: 12. Feb 2020
136 Beiträge
 
Delphi 12 Athens
 
#15

AW: FormClose mit ESC bzw. onKeypress

  Alt 12. Feb 2020, 16:45
So nun hier eben mit XE2 erstellte Form, die nicht läuft. Das weiß nur der heilige Ozzy warum nicht mal Showmessage im Ereignis OnKeyPress fuktioniert.
OnKeyPress wird also definitiv nicht ausgelöst.

object Form1: TForm1
Left = 0
Top = 0
Caption = 'Form1'
ClientHeight = 299
ClientWidth = 635
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
KeyPreview = True
OldCreateOrder = False
OnKeyPress = FormKeyPress
PixelsPerInch = 96
TextHeight = 13
end
  Mit Zitat antworten Zitat